Best Practices of Plone Development
Best Practices of Plone Development
Best Practices of Plone Development
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
1.4 Form Controller 1 BEST PRACTICES FOR PLONE DEVELOPMENT<br />
1.4.12 CMFFormController Docs<br />
• Included in package<br />
– Excellent<br />
– Examples here borrowed from there<br />
1.4.13 Storing Definitions<br />
• Stored on forms/scripts<br />
• Stored on filesystem for FS skins/scripts<br />
• Stored in portal_formcontroller tool itself<br />
• Set in request object<br />
1.4.14 Storing Actions/Validations on FS<br />
• Stored in .metadata file for object:<br />
[validators]<br />
validators.[Type].[Button] = val1, val2<br />
validators.Event.Save = validate_event<br />
validators..Save = validate_event<br />
validators = validate_id, validate_event<br />
1.4.15 Stored on Tool<br />
• Useful for overriding standard/product skins/scripts<br />
– Without having to customize skin/script<br />
27