Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Internet > Plone Extensions

    collective.configviews 3.0.2

    Download button

    No screenshots available
    Downloads: 145  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    JeanMichel FRANCOIS | More programs
    GPL / FREE
    February 4th, 2012, 00:03 GMT [view history]
    ROOT / Internet / Plone Extensions

     Read user reviews (0)  Refer to a friend  Subscribe

    collective.configviews description

    Manage configuration of browser views

    collective.configviews is a Plone product that does not provide new feature to Plone. It is intended to plone add-ons developers.

    If you need to create a browser view with configuration this add-on will make your life easier.

    Why doing this in an add-on

    Because most of the time developers faced to this issue store data in the content type, or with annotation on context without trying to optimize, or without form, ...

    How it works

    This add-ons define three components:

    - IConfigurableView
    - IConfigurationProvider
    - IConfigurationMutator

    The main idea, is you just have to create an zope.interface to define settings schema and set this schema in the 'settings_schema' attributes of the view.

    For example:

    class IMyViewSettings(interface.Interface):
     width = schema.ASCIILine(title=u"Width",
     default='620')

     height = schema.ASCIILine(title=u"Height",
     default='620')

    class MyView(ConfigurableBaseView):
     settings_schema = IMyViewSettings

     def width(self):
     return self.settings['width']

     def height(self):
     return self.settings['height']


    IConfigurationProvider

    This component is responsible to return settings. It has been implemented in different adapters

    Provider (no named adapter): this provider load default values from the interface fields defaults values and it let other providers override values. It is an aggregation of all providers specified in the view throw the settings_providers attribute. Warning: The order is important, each settings are taken from the last provider which provide it.

    'site.plone.app.registry': this provider return values from plone.app.registry (you have to register your settings_schema as records in registry.xml)

    'context.zope.app.annotation': this provider return values stored in annotation on the context of the view.

    'user.plone.app.users': TODO (not implemented yet)

    IConfigurationMutator

    This component is an extension of IConfigurationProvider with the write settings capabilities (throw its 'set' method).

    'context.zope.app.annontation': this mutator store the configuration in the context of the view.

    IConfigurableView

    This component is implemented in a browserview you are supposed to inherits from in your own browser view.

    The default behavior is to use 'context.zope.app.annotation' as mutator and the following providers:

    - default.zope.interface
    - site.plone.app.registry
    - context.zope.app.annotation


    Product's homepage

    Here are some key features of "collective.configviews":

    · Configuration providers
    · Configuration structure defined with zope.interface & zope.schema
    · Auto form to manage the configuration of the current view

    Requirements:

    · Python
    · Plone CMS

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

    · Fix configuration error by forcing the load zcml of CMFDynamicViewFTI [toutpt]

      


    TAGS:

    configuration manager | browser views | configuration | manager | browser

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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