Softpedia
 


SCRIPTS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>

WEEK'S BEST

  • Sketch CMS 2
  • SoundCloud Custom ...
  • Fbootstrapp
  • LuxCal 2.6.0
  • Twitter Embed 1.0.1
  • CSS3 Lightbox
  • Emphasis
  • AutoMOD 1.0.0.1
  • Patternizer.js v1.01
  • WP-Trader .4.6 Beta
  • Home > Scripts > Programming Methods and Algorithms

    Acquisition 4.0a1

    Download button


    Downloads: 453  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Platforms:

    Databases:

    Language:

    Last Updated:

    Category:
    Zope Corporation | More scripts
    Other Free / Open Source License - Zope Public License 2.1 

    Windows / Linux / Mac OS / BSD / Solaris
    N/A
    Python
    December 18th, 2011, 15:32 GMT [view history]
    C: \ Programming Methods and Algorithms

     Read user reviews (0)  Refer to a friend  Subscribe

    Acquisition description

    This is a mechanism that allows objects to obtain attributes from the containment hierarchy they're in

    Two styles of acquisition are supported: explicit and implicit acquisition.

    Implicit acquisition is so named because it searches for attributes from the environment automatically whenever an attribute cannot be obtained directly from an object or through inheritance.

    An attribute can be implicitly acquired if its name does not begin with an underscore.

    To support implicit acquisition, your class should inherit from the mix-in class Acquisition.Implicit.

    When explicit acquisition is used, attributes are not automatically obtained from the environment. Instead, the method aq_acquire must be used.

    Acquisition is written in Python.

    Acquisition provides a powerful way to dynamically share information between objects. Zope 2 uses acquisition for a number of its key features including security, object publishing, and DTML variable lookup.

    Acquisition also provides an elegant solution to the problem of circular references for many classes of problems. While acquisition is powerful, you should take care when using acquisition in your applications.

    The details can get complex, especially with the differences between acquiring from context and acquiring from containment.

    What's New in This Release: [ read full changelog ]

    · Raise RuntimeError: Recursion detected in acquisition wrapper if an object with a __parent__ pointer points to a wrapper that in turn points to the original object.
    · Prevent wrappers to be created while accessing __parent__ on types derived from Explicit or Implicit base classes.



    TAGS:

    Python programming | object attribute | get attribute | get | attribute | object



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM