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

All Samples(2238)  |  Call(2238)  |  Derive(0)  |  Import(0)
Declare names to be inaccessible to restricted code.

src/p/r/Products.ExternalStorage-0.8.1/Products/ExternalStorage/example/ExternalExample/ExternalImage.py   Products.ExternalStorage(Download)
    height = ComputedAttribute(getHeight, 1)
 
    security.declarePrivate('cmf_edit')
    def cmf_edit(self, precondition='', file=None, title=None):
        if file is not None:

src/p/r/Products.LDAPConnector-1.0/Products/LDAPConnector/LDAPConnector.py   Products.LDAPConnector(Download)
 
    # Security overrides for methods inherited from the LDAPConnection class
    security.declarePrivate( 'addServer'
                           , 'logger'
                           , 'removeServer'

src/p/r/Products.FileSystemSite-2.4/Products/FileSystemSite/FSZSQLMethod.py   Products.FileSystemSite(Download)
 
    # Make mutators private
    security.declarePrivate('manage_main','manage_edit','manage_advanced','manage_advancedForm')
    manage=None
 

src/p/r/Products.FileSystemSite-2.4/Products/FileSystemSite/FSPythonScript.py   Products.FileSystemSite(Download)
    security.declareProtected(View, 'index_html',)
    # Prevent the bindings from being edited TTW
    security.declarePrivate('ZBindings_edit','ZBindingsHTML_editForm',
                            'ZBindingsHTML_editAction')
 

src/p/r/Products.IssueDealer-0.9.131/Products/IssueDealer/base.py   Products.IssueDealer(Download)
        return url_utilities.create_hyperlink(*arguments, **keywords)
 
    security.declarePrivate('get_parents')
    def get_parents(self, stop=None):
        """Returns a list of parent objects."""
        return escape(string_)
 
    security.declarePrivate('get_state_importance_due_sort')
    def get_state_importance_due_sort(self):
        " "
        return ""
 
    security.declarePrivate('get_filtered_objects')
            sort_order=sort_order, sort_on=sort_on)
 
    security.declarePrivate('get_sorted_objects')
    def get_sorted_objects(self, **keywords):
	if not keywords.has_key('sort_on'):
        return self.get_objects(**keywords)
 
    security.declarePrivate('get_objects')
    def get_objects(self, meta_type=['Issue', 'Relation'], **keywords):
        """Returns a list of objects."""

src/p/r/Products.IssueDealer-0.9.131/Products/IssueDealer/issue.py   Products.IssueDealer(Download)
 
    # Untested
    security.declarePrivate('set')
    def set(self, name, value):
        """Alias for attribute setting."""
 
    # Untested
    security.declarePrivate(permissions.view_issue_dealer, 'render_text_as_html')
    def render_text_as_html(self):
        """Renders the contents as text, keeping whitespace indentation."""
 
    # Untested
    security.declarePrivate('change_state')
    def change_state(self, new_state, from_parent=0):
        """Changes the state of the object and, if necessary, the
 
    # Untested
    security.declarePrivate('get_state_importance_title_sort')
    def get_state_importance_title_sort(self):
        """Returns a string used for sorting in the catalog."""
 
    # Untested
    security.declarePrivate('get_state_importance_due_sort')
    def get_state_importance_due_sort(self):
        """Returns a string used for sorting in the catalog."""

src/p/r/Products.PloneBooking-3.0.0a2/Products/PloneBooking/content/Booking.py   Products.PloneBooking(Download)
        return result
 
    security.declarePrivate('getNewDate')
    def getNewDate(self, mydate):
        """
    # ###################
 
    security.declarePrivate('getDefaultPeriodicityUID')
    def getDefaultPeriodicityUID(self):
        """
        return self.UID()
 
    security.declarePrivate('View', 'getDefaultStartDate')
    def getDefaultStartDate(self):
        """
        return DateTime(date_string)
 
    security.declarePrivate('View', 'getDefaultEndDate')
    def getDefaultEndDate(self):
        """Default value for endDate field
        return DateTime(date_string)
 
    security.declarePrivate('View', 'getDefaultEmail')
    def getDefaultEmail(self):
        """Default value for email field

src/p/r/Products.FileSystemSite-2.4/Products/FileSystemSite/FSPageTemplate.py   Products.FileSystemSite(Download)
 
    # Declare security for unprotected PageTemplate methods.
    security.declarePrivate('pt_edit', 'write')
 
    def __init__(self, id, filepath, fullname=None, properties=None):
            self.write(data)
 
    security.declarePrivate('read')
    def read(self):
        # Tie in on an opportunity to auto-update
        return 'file:%s' % self._filepath
 
    security.declarePrivate( '_ZPT_exec' )
    _ZPT_exec = ZopePageTemplate._exec.im_func
 
    security.declarePrivate( '_exec' )

src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/Field.py   Products.Archetypes(Download)
        self.registerLayer('storage', self.storage)
 
    security.declarePrivate('copy')
    def copy(self, name=None):
        """
        return None
 
    security.declarePrivate('validate_validators')
    def validate_validators(self, value, instance, errors, **kwargs):
        """
            return result
 
    security.declarePrivate('validate_required')
    def validate_required(self, instance, value, errors):
        if not value:
        return None
 
    security.declarePrivate('validate_vocabulary')
    def validate_vocabulary(self, instance, value, errors):
        """Make sure value is inside the allowed values
        return error
 
    security.declarePrivate('validate_content_types')
 
    def validate_content_types(self, instance, value, errors):

src/p/r/Products.Archetypes-HEAD/Products/Archetypes/Field.py   Products.Archetypes(Download)
        self.registerLayer('storage', self.storage)
 
    security.declarePrivate('copy')
    def copy(self, name=None):
        """
        return None
 
    security.declarePrivate('validate_validators')
    def validate_validators(self, value, instance, errors, **kwargs):
        """
            return result
 
    security.declarePrivate('validate_required')
    def validate_required(self, instance, value, errors):
        if not value:
        return None
 
    security.declarePrivate('validate_vocabulary')
    def validate_vocabulary(self, instance, value, errors):
        """Make sure value is inside the allowed values
        return error
 
    security.declarePrivate('validate_content_types')
 
    def validate_content_types(self, instance, value, errors):

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