Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install products.atschemaeditorng

How to install Products.ATSchemaEditorNG

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install products.atschemaeditorng
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.6 Available View build log
0.5.0 Available View build log
Windows (64-bit)
0.6 Available View build log
0.5.0 Available View build log
Mac OS X (10.5+)
0.6 Available View build log
0.5.0 Available View build log
Linux (32-bit)
0.6 Available View build log
0.5.0 Available View build log
Linux (64-bit)
0.6 Available View build log
0.5.0 Available View build log
 
Author
License
LGPL
Dependencies
Depended by
Lastest release
version 0.6 on Jan 5th, 2011

Abstract

ATSchemaEditorNG is a framework to provide flexible schema editing for AT content-types.

Requirements:

3.x (for 2.5.x use version 0.5.x)

Installation:

See docs/INSTALL.txt.

Short (buildout): Add Products.ATSchemaEditorNG to eggs= section and in the context of your instance to zcml= section. Goto portal_quickinstaller and install ATSE. If you want to have demo types go to config.py and enable them.

Current Maintainer:

Simon Pamies (spamsch) EMail: s.pamies at banality dot de

Original Author:

Andreas Jung, ZOPYX Ltd. & Co. KG D-72070 Tuebingen, Germany

License:

ATSchemaEditorNG is (C) by Andreas Jung, Simon Pamies, Rob Miller, and contributors, and published as open-source under the GNU Lesser General Public License V 2.1 (see LICENSE.txt). If this license does not meet your requirements, contact the maintainers for releasing ATSchemaEditorNG under a suitable license.

Documentation:

NOTICE: Please notice that since 0.4 objects that get created no longer automatically sync schema with editor schema. If you have changes in your editor and then create a new object this object will not get changes unless you call self.updateSchemaFromEditor() in manage_afterAdd. Please make sure the call is the first one before you call things like BaseContent.manage_afterAdd

Example for initializing content object based on ParentManagedSchema or such:

def manage_afterAdd(self, item, container): self.updateSchemaFromEditor() BaseContent.manage_afterAdd(self, item, container)

Look at the examples directory and make sure you read docstrings in ParentManagedSchema.py. Also read the howto (doc/HOWTO.txt).

Contributions:

Thanks to gocept for sponsoring some work in 0.4.5

Thanks to Aaron VanDerlip for useful hints about portal_factory failures in 0.4.1

Many thanks to coreblox (http://coreblox.com) for sponsoring all work on 0.4.0

Whit Morriss: examples and tests

Rob Miller (rafrombrc): Maintainership until 0.4 - much work for 0.3.x line.

Simon Pamies: fixes, code cleanup, schema update mechanism revisited (and most of the stuff in V 0.2 and 0.4)

Sasha Vincic: storage registry implementation

0.6 (unreleased) - Eggified completely [spamsch]

  • REST fixes

System Message: WARNING/2 (<string>, line 92)

Bullet list ends without a blank line; unexpected unindent.

[ajung]

  • Various Plone 3 fixes

System Message: WARNING/2 (<string>, line 95)

Bullet list ends without a blank line; unexpected unindent.

[macadames]

0.5.1 (24.03.2010)

  • change atse_updateManagedSchema so it's waking up only objects

System Message: WARNING/2 (<string>, line 100)

Bullet list ends without a blank line; unexpected unindent.

that need to be updated [amleczko]

0.5.0 (16.03.2010)

  • Added Select to the StringField selection

System Message: WARNING/2 (<string>, line 105)

Bullet list ends without a blank line; unexpected unindent.

[spamsch]

  • Fixed #13: Error during tool access via ZMI.

System Message: WARNING/2 (<string>, line 108)

Bullet list ends without a blank line; unexpected unindent.

[spamsch]

  • Get rid of CMFCorePermissions

System Message: WARNING/2 (<string>, line 111)

Bullet list ends without a blank line; unexpected unindent.

[naro]

  • Added new atse_addOrReplaceField method.

System Message: WARNING/2 (<string>, line 114)

Bullet list ends without a blank line; unexpected unindent.

[spamsch]

  • Added more configuration options for text fields and for

System Message: WARNING/2 (<string>, line 117)

Bullet list ends without a blank line; unexpected unindent.

storage selection. Look at config.py. [spamsch]

0.4.7 (01.10.2007)

  • Added schema template editor - allows defining re-usable schemata.

System Message: WARNING/2 (<string>, line 123)

Bullet list ends without a blank line; unexpected unindent.

[mkoch,ctheune]

0.4.6 (never released)

  • Fixed #12: isEmpty always shown als activated validator.

System Message: WARNING/2 (<string>, line 128)

Bullet list ends without a blank line; unexpected unindent.

[spamsch]

  • Fixed #11: ReferenceBrowserWidget was not available. Thanks to

System Message: WARNING/2 (<string>, line 131)

Bullet list ends without a blank line; unexpected unindent.

Alexander Pilz for finding this. [spamsch]

  • supplied missing import: this fixes #9 Broken uninstall method

System Message: WARNING/2 (<string>, line 135)

Bullet list ends without a blank line; unexpected unindent.

[lzdych]

0.4.6rc1 (17.08.2007)

  • Started writing some simple howto (doc/HOWTO.txt)

System Message: WARNING/2 (<string>, line 140)

Bullet list ends without a blank line; unexpected unindent.

[spamsch]

  • Added new feature flag HAS_MANAGEMENT_UI_FUNCTIONALITY that

System Message: WARNING/2 (<string>, line 143)

Bullet list ends without a blank line; unexpected unindent.

can be used to control if management functions are displayed. [spamsch]

  • UI p0rn (much more to come)

System Message: WARNING/2 (<string>, line 147)

Bullet list ends without a blank line; unexpected unindent.

[spamsch]

  • Fixed bug where a security check did not success for TTW added

System Message: WARNING/2 (<string>, line 150)

Bullet list ends without a blank line; unexpected unindent.

schemas. Thanks to Hedley Roos. [spamsch]

  • Added a patch for Products.validation.RangeValidator to relax the

System Message: WARNING/2 (<string>, line 154)

Bullet list ends without a blank line; unexpected unindent.

max value check (instead of value < maxval we check value <= maxval) and added there tolerance to string typed max and min. [spamsch]

  • Extended editor so that you can pass your own parameters to each

System Message: WARNING/2 (<string>, line 159)

Bullet list ends without a blank line; unexpected unindent.

validator that supports parameters (like inNumericRange). Also added a bridge to non-registered RegexValidator so that users can input their own regular expression. [spamsch]

  • Extended editor so that you can now upload a file to each field.

System Message: WARNING/2 (<string>, line 165)

Bullet list ends without a blank line; unexpected unindent.

Usecase: Fields based upon editor defined fields want to have a template.

Example:

atse_config.field_registry.update({'ExcelField': {'field': ExcelField, 'allowed_widgets':['ExcelWidget', 'FileWidget', ], 'post_method':'atse_attachFilePostMethod', 'post_macro':'here/fileattach_macros/macros/upload'}})

Simply define post_method and post_macro as defined here. For this example an excel file can be uploaded to excel fields and serve as template. You can then access the attached file: schemaeditor.atse_getAttachedFieldFile(<fieldname>). [spamsch]

  • Revamped validator selection so that it shows a list of available

System Message: WARNING/2 (<string>, line 181)

Bullet list ends without a blank line; unexpected unindent.

validators instead of having the user input them. [spamsch]

  • Added support for ATVocabularyManager including UI selection of vocabularies.

System Message: WARNING/2 (<string>, line 185)

Bullet list ends without a blank line; unexpected unindent.

[spamsch]

  • Introduced new flag HAS_FIELD_VISIBILITY_ENABLED that controls

System Message: WARNING/2 (<string>, line 188)

Bullet list ends without a blank line; unexpected unindent.

if the UI should show the visibility controls for a field. [spamsch]

  • Introduced a new flag HAS_SECURITY_MANAGEMENT_ENABLED that controls

System Message: WARNING/2 (<string>, line 192)

Bullet list ends without a blank line; unexpected unindent.

if the UI shows field security management related stuff. [spamsch]

  • Introduced new method atse_hasFeature(name) that can be used to

System Message: WARNING/2 (<string>, line 196)

Bullet list ends without a blank line; unexpected unindent.

check if a given feature (defined in config.py) is available. [spamsch]

  • Fixed field->widget associations defined in config.py. The complete

System Message: WARNING/2 (<string>, line 200)

Bullet list ends without a blank line; unexpected unindent.

select line (like Flex or Radio) were not included. [spamsch]

  • Added methode atse_reinitializeRegistries because upon fresh registration

System Message: WARNING/2 (<string>, line 204)

Bullet list ends without a blank line; unexpected unindent.

of fields and widgets instances do not get the changes. [spamsch]

  • documentation updates - clarify maintainership and add contributions

System Message: WARNING/2 (<string>, line 208)

Bullet list ends without a blank line; unexpected unindent.

[spamsch]

0.4.5 (never released)

  • Fixed uninstall procedure - CMFQI does not remove configlets

System Message: WARNING/2 (<string>, line 213)

Bullet list ends without a blank line; unexpected unindent.

Thanks to IOhannes m zmoelnig for the fix. [spamsch]

  • Added permission handling for fields. For each field you can

System Message: WARNING/2 (<string>, line 217)

Bullet list ends without a blank line; unexpected unindent.

now select the permission from an predefined list (from site_properties/atsePossible*Permissions) [spamsch]

  • Added some constraints for allowed widgets. Look at config.py

System Message: WARNING/2 (<string>, line 222)

Bullet list ends without a blank line; unexpected unindent.

to see what changed (allowed_widgets). For each field we now define a set of acceptable widgets. Now you can't select an IntWidget for a ReferenceField anymore :-) [spamsch]

  • Added type support for DataGridField. That means that you can specify a types

System Message: WARNING/2 (<string>, line 228)

Bullet list ends without a blank line; unexpected unindent.

for each of the fields you define. Needs patched version of DataGridField! Please make sure to apply the included diff (in doc/datagridfield-validatecolumn.diff) to a 1.5.0 version of DataGridField (MoreFieldsAndWidgets/DataGridField/tags/1.5.0). If you don't do this ATSE will not include DataGridFieldSupport!

Do the following to patch correctly: $ cd <path_to_DataGridField> $ cat version.txt 1.5.0 $ patch -p 0 < ../ATSchemaEditorNG/doc/datagridfield-validatedcolumn.diff [spamsch]

0.4.4 (18.04.2007)

  • Fixed DataGridWidget failure

System Message: WARNING/2 (<string>, line 243)

Bullet list ends without a blank line; unexpected unindent.

[spamsch]

  • Fixed references to zLOG replacing with logging package

System Message: WARNING/2 (<string>, line 246)

Bullet list ends without a blank line; unexpected unindent.

[spamsch]

  • added MultiCheckbox widget - defined as MultiSelectionWidget(format="checkbox")

System Message: WARNING/2 (<string>, line 249)

Bullet list ends without a blank line; unexpected unindent.

[naro]

  • added vocabulary proxy method and option to use python scripts as vocabulary source.

System Message: WARNING/2 (<string>, line 252)

Bullet list ends without a blank line; unexpected unindent.

Additionaly to key|value and method:methodname as vocabulary source, there can be 'script:' (without script name). Script name is computed automaticaly as atse_<portal type>_<fieldname>Vocabulary.

Example:

System Message: WARNING/2 (<string>, line 258)

Literal block expected; none found.

Portal type: 'Target 1', field countryType:

System Message: WARNING/2 (<string>, line 260)

Literal block expected; none found.

atse_Target1_countryTypeVocabulary - this is name of the python script or external method [naro]

  • portal_status_message is encoded to utf8 before sent to browser.

System Message: WARNING/2 (<string>, line 265)

Bullet list ends without a blank line; unexpected unindent.

Plone 2.5 returns translated strings in unicode. [naro]

  • made use of FD in atse_update consistent. Now you can

System Message: WARNING/2 (<string>, line 269)

Bullet list ends without a blank line; unexpected unindent.

always use dictionaries. [spamsch]

  • added one more test that uses atse_update to create field

System Message: WARNING/2 (<string>, line 273)

Bullet list ends without a blank line; unexpected unindent.

[spamsch]

0.4.3 (10.10.2006)

  • more tests for portal_factory madness

System Message: WARNING/2 (<string>, line 278)

Bullet list ends without a blank line; unexpected unindent.

[spamsch]

  • fixed DataGridField templates related to atseng: schema editor template

System Message: WARNING/2 (<string>, line 281)

Bullet list ends without a blank line; unexpected unindent.

was broken after DataGridField was selected as field type [lzdych]

  • ATSE tool is no longer implicitly available

System Message: WARNING/2 (<string>, line 285)

Bullet list ends without a blank line; unexpected unindent.

[spamsch]

  • fixed broken schema editor template after new schema is created

System Message: WARNING/2 (<string>, line 288)

Bullet list ends without a blank line; unexpected unindent.

[lzdych]

  • Added one more check for portal_factory types. Could not model

System Message: WARNING/2 (<string>, line 291)

Bullet list ends without a blank line; unexpected unindent.

a test for parent of a folder being TempFolder when using PortalFactory but it seems that it fixes some errors on other instances and has no impact on running ones [spamsch]

0.4.2 (27.06.2006)

  • disabled automatic creation of backup file. This configuration

System Message: WARNING/2 (<string>, line 299)

Bullet list ends without a blank line; unexpected unindent.

is done over property atseAutomaticBackupWhenUpdateSchema in site_properties. If users want to have automatic backup then this property needs to be enabled. [spamsch]

  • disabled installation of example types in config.py

System Message: WARNING/2 (<string>, line 305)

Bullet list ends without a blank line; unexpected unindent.

If types should be installed then enable property in config.py [spamsch]

  • some bugfixes to make ParentManagedSchema play nicely with

System Message: WARNING/2 (<string>, line 309)

Bullet list ends without a blank line; unexpected unindent.

portal_factory managed types. Bug reported by Aaron VanDerlip [spamsch]

  • added support for DataGridField/Widget (if DG is available)

System Message: WARNING/2 (<string>, line 313)

Bullet list ends without a blank line; unexpected unindent.

Please read doc/DATAGRID.txt [naro]

  • updated i18n, updated Czech translation

System Message: WARNING/2 (<string>, line 317)

Bullet list ends without a blank line; unexpected unindent.

[naro]

  • fixed minor bug in ReferenceField/Widget handling

System Message: WARNING/2 (<string>, line 320)

Bullet list ends without a blank line; unexpected unindent.

[naro]

0.4.1 (08.06.2006)

  • Fixed some documentation lack: Newly created objects

System Message: WARNING/2 (<string>, line 325)

Bullet list ends without a blank line; unexpected unindent.

not longer automatically update schema from Editor since 0.4. Added extensive documentation about this change. [spamsch]

  • Added tests to test changes since 0.4

System Message: WARNING/2 (<string>, line 330)

Bullet list ends without a blank line; unexpected unindent.

[spamsch]

0.4 (19.05.2006)

  • SchemaEditor:
  • Added xml import and export functionality
  • Bugfix for non working ordering mode
  • Fixes for schema syncing - Schemas are now never synced w/o explicit user action
  • Added dynamic object registering support
  • Added role based field permission settings

System Message: WARNING/2 (<string>, line 340)

Bullet list ends without a blank line; unexpected unindent.

[spamsch]

  • reworked some of the template stuff to make dynamic registration of types possible

System Message: WARNING/2 (<string>, line 343)

Bullet list ends without a blank line; unexpected unindent.

[spamsch]

0.3.3 (02.04.2006)

  • added support for ImageField max_size and sizes properties
  • added support for AnnotationStorage and MetadataStorage
  • moved "Create index" checkbox from widget setting so the field

System Message: WARNING/2 (<string>, line 352)

Bullet list ends without a blank line; unexpected unindent.

settings (field is indexed, not widget!) and renamed to "Searchable"

  • installation of ATSchemaEditorNG now installs the schema editor

System Message: WARNING/2 (<string>, line 356)

Bullet list ends without a blank line; unexpected unindent.

tool. Additionaly, a configlet is registered that makes the schema editor available in the Plone control panel.

  • use prefs_main_template macro (instead of main macro) when

System Message: WARNING/2 (<string>, line 360)

Bullet list ends without a blank line; unexpected unindent.

rendering schema editor

  • handle the absence of a default schema gracefully by displaying a

System Message: WARNING/2 (<string>, line 363)

Bullet list ends without a blank line; unexpected unindent.

message instead of raising an exception

  • handle more ReferenceField properties like

System Message: WARNING/2 (<string>, line 366)

Bullet list ends without a blank line; unexpected unindent.

'vocabulary_display_path_bound', 'multiValued', 'allowed_types' and 'checkbox_bound'.

  • allow setting 'startup_directory' for ReferenceBrowserWidget.
  • Fixed bug when computing default value for field.
  • Allow selection of ReferenceWidget in addition to

System Message: WARNING/2 (<string>, line 374)

Bullet list ends without a blank line; unexpected unindent.

ReferenceBrowserWidget for reference fields.

  • added support for allowable_content_types, default_output_type

System Message: WARNING/2 (<string>, line 377)

Bullet list ends without a blank line; unexpected unindent.

and default_content_type in TextField

0.3.2 (24.09.2005)

  • SchemaEditor now overrides __setstate__ to do instance variable

System Message: WARNING/2 (<string>, line 382)

Bullet list ends without a blank line; unexpected unindent.

initialization, if necessary.

  • added special edit accessor for ReferenceFields
  • schema selector bug fix

0.3.1 (unreleased)

  • added support for sync'ing unmanaged and new fields from the

System Message: WARNING/2 (<string>, line 391)

Bullet list ends without a blank line; unexpected unindent.

source code, to bring cached ATSE schemas into sync w/ any changes in the source. NOTE: must run schema_editor._migrateObjPtype() for each schema editor to convert the _obj_ptype attribute from a list to an OOBTree

0.3.0 (unreleased)

  • added field, widget, and storage registry functionality
  • added support for atse_managed field attribute
  • schema editor now honors accessors and mutators explicitly defined

System Message: WARNING/2 (<string>, line 403)

Bullet list ends without a blank line; unexpected unindent.

in python schema, but only if the methods are actually defined on the object

0.23 (unreleased)

  • fixed handling of widget.help

0.22 (08.01.2005)

  • schemas can be exported as text
  • Schemas can now be managed through a tool (SchemaEditorTool.py)

System Message: WARNING/2 (<string>, line 415)

Bullet list ends without a blank line; unexpected unindent.

and not only through a folder.

  • new client mixin class ToolManagedSchema
  • persistency fix in schema registration

0.21 (2.11.2004)

  • added support for validators
  • fixed some missing parameters in redirection URLs

0.2 (1.10.2004)

  • Added developer mode: Look @ config.py for information
  • Beautyfied view a little bit
  • Added a selection box where you can select registered objects
  • Added methods to register objects not only schematas
  • Moved updateSchema method to SchemaEditor.py
  • Fixed bug that caused the objects' id to be saved in unicode
  • Fixed tests
  • Added some field to control if widget is visible
  • added schema registration infrastructure (support for multiple schemas)
  • lots of API changes

0.1 (17.09.2004)

  • initial release (backport from PloneCollectorNG)
  • refactored

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:6

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.