Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(256)  |  Call(185)  |  Derive(0)  |  Import(71)
Persistent HTML Document Templates

src/p/r/Products.ATBiblioStyles-1.0.0/Products/ATBiblioStyles/doc/BibrefStyleExample/BibrefStyleExample.py   Products.ATBiblioStyles(Download)
# Zope stuff
from Globals import InitializeClass
from App.Dialogs import MessageDialog
 
# CMFBibliographyAT stuff
    except:
        return MessageDialog(
            title='BiblioList tool warning message',
            message='The bibref style you attempted to add already exists.',
            action='manage_main')

src/z/o/Zope2-2.13.22/src/OFS/userfolder.py   Zope2(Download)
from App.Management import Tabs
from App.special_dtml import DTMLFile
from App.Dialogs import MessageDialog
from OFS.role import RoleManager
from OFS.SimpleItem import Item
    def _addUser(self, name, password, confirm, roles, domains, REQUEST=None):
        if not name:
            return MessageDialog(
                   title='Illegal value',
                   message='A username must be specified',
                   action='manage_main')
        if not password or not confirm:
            if not domains:
                return MessageDialog(
                   title='Illegal value',
                                  name == self._emergency_user.getUserName()):
            return MessageDialog(
                   title='Illegal value',
                   message='A user with the specified name already exists',
                   action='manage_main')
        if (password or confirm) and (password != confirm):
            return MessageDialog(
                   title='Illegal value',

src/i/s/IssueTrackerProduct-0.14.2/IssueTrackerProduct/IssueUserFolder.py   IssueTrackerProduct(Download)
# Zope
from AccessControl import User, AuthEncoding
from App.Dialogs import MessageDialog
from AccessControl import ClassSecurityInfo
from AccessControl.Role import DEFAULTMAXLISTUSERS
    def _addUser(self, name, password, confirm, roles, domains, REQUEST=None):
        if not name:
            return MessageDialog(
                title  ='Illegal value', 
                message='A username must be specified',
                action ='manage_main')
        if not password or not confirm:
            if not domains:
                return MessageDialog(
                    title  ='Illegal value', 
                                  name == self._emergency_user.getUserName()):
            return MessageDialog(
                title  ='Illegal value', 
                message='A user with the specified name already exists',
                action ='manage_main')
        if (password or confirm) and (password != confirm):
            return MessageDialog(
            title  ='Illegal value', 

src/i/s/IssueTrackerProduct-HEAD/IssueTrackerProduct/IssueUserFolder.py   IssueTrackerProduct(Download)
# Zope
from AccessControl import User, AuthEncoding
from App.Dialogs import MessageDialog
from AccessControl import ClassSecurityInfo
from AccessControl.Role import DEFAULTMAXLISTUSERS
    def _addUser(self, name, password, confirm, roles, domains, REQUEST=None):
        if not name:
            return MessageDialog(
                title  ='Illegal value', 
                message='A username must be specified',
                action ='manage_main')
        if not password or not confirm:
            if not domains:
                return MessageDialog(
                    title  ='Illegal value', 
                                  name == self._emergency_user.getUserName()):
            return MessageDialog(
                title  ='Illegal value', 
                message='A user with the specified name already exists',
                action ='manage_main')
        if (password or confirm) and (password != confirm):
            return MessageDialog(
            title  ='Illegal value', 

src/z/o/Zope-HEAD/src/OFS/userfolder.py   Zope(Download)
from App.Management import Tabs
from App.special_dtml import DTMLFile
from App.Dialogs import MessageDialog
from OFS.role import RoleManager
from OFS.SimpleItem import Item
    def _addUser(self, name, password, confirm, roles, domains, REQUEST=None):
        if not name:
            return MessageDialog(
                   title='Illegal value',
                   message='A username must be specified',
                   action='manage_main')
        if not password or not confirm:
            if not domains:
                return MessageDialog(
                   title='Illegal value',
                                  name == self._emergency_user.getUserName()):
            return MessageDialog(
                   title='Illegal value',
                   message='A user with the specified name already exists',
                   action='manage_main')
        if (password or confirm) and (password != confirm):
            return MessageDialog(
                   title='Illegal value',

src/z/o/Zope2-2.13.22/src/OFS/CopySupport.py   Zope2(Download)
from Acquisition import aq_inner
from Acquisition import aq_parent
from App.Dialogs import MessageDialog
from App.special_dtml import HTML
from App.special_dtml import DTMLFile
                except:
                    raise CopyError(MessageDialog(
                        title="Copy Error",
                        message=sys.exc_info()[1],
                        action='manage_main'))
                except:
                    raise CopyError(MessageDialog(
                        title="Move Error",
                        message=sys.exc_info()[1],
                        action='manage_main'))
        except:
            raise CopyError(MessageDialog(
                title='Invalid Id',
                message=sys.exc_info()[1],
                action ='manage_main'))
        except:
            raise CopyError(MessageDialog(
                title="Rename Error",
                message=sys.exc_info()[1],
                action ='manage_main'))

src/z/o/Zope-HEAD/src/OFS/CopySupport.py   Zope(Download)
from Acquisition import aq_inner
from Acquisition import aq_parent
from App.Dialogs import MessageDialog
from App.special_dtml import HTML
from App.special_dtml import DTMLFile
                except:
                    raise CopyError(MessageDialog(
                        title="Copy Error",
                        message=sys.exc_info()[1],
                        action='manage_main'))
                except:
                    raise CopyError(MessageDialog(
                        title="Move Error",
                        message=sys.exc_info()[1],
                        action='manage_main'))
        except:
            raise CopyError(MessageDialog(
                title='Invalid Id',
                message=sys.exc_info()[1],
                action ='manage_main'))
        except:
            raise CopyError(MessageDialog(
                title="Rename Error",
                message=sys.exc_info()[1],
                action ='manage_main'))

src/z/o/Zope2-2.13.22/src/OFS/role.py   Zope2(Download)
from cgi import escape
 
from App.Dialogs import MessageDialog
from App.special_dtml import DTMLFile
 
 
        if fails:
            return MessageDialog(title="Warning!",
                                 message="Some permissions had errors: "
                                   + escape(', '.join(fails)),
                                 action='manage_access')
        return MessageDialog(
            title = 'Success!',
    def _addRole(self, role, REQUEST=None):
        if not role:
            return MessageDialog(
                   title='Incomplete',
                   message='You must specify a role name',
                   action='manage_access')
        if role in self.__ac_roles__:
            return MessageDialog(
                   title='Role Exists',

src/z/o/Zope2-2.13.22/src/Products/SiteAccess/AccessRule.py   Zope2(Download)
import os
 
from App.Dialogs import MessageDialog
from App.special_dtml import DTMLFile
from ZPublisher.BeforeTraverse import NameCaller
                pass
        if REQUEST:
            return MessageDialog(title='No Access Rule',
              message='This object now has no Access Rule',
              action='%s/manage_main' % REQUEST['URL1'])
            pass
        if REQUEST:
            return MessageDialog(title='Access Rule Set',
              message='"%s" is now the Access Rule for this object'
                      % escape(method_id),
              action='%s/manage_main' % REQUEST['URL1'])
    else:
        if REQUEST:
            return MessageDialog(title='Invalid Method Id',

src/z/o/Zope-HEAD/src/OFS/role.py   Zope(Download)
from cgi import escape
 
from App.Dialogs import MessageDialog
from App.special_dtml import DTMLFile
 
 
        if fails:
            return MessageDialog(title="Warning!",
                                 message="Some permissions had errors: "
                                   + escape(', '.join(fails)),
                                 action='manage_access')
        return MessageDialog(
            title = 'Success!',
    def _addRole(self, role, REQUEST=None):
        if not role:
            return MessageDialog(
                   title='Incomplete',
                   message='You must specify a role name',
                   action='manage_access')
        if role in self.__ac_roles__:
            return MessageDialog(
                   title='Role Exists',

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8  Next