Creating SQL content types with collective.tin
collective.tin is a library for creating RDBMS backed content types on top of SQLAlchemy. collective.lead is used for transaction integration. collective.mercury supports the autogeneration of interfaces, model and db files by introspecting the RDBMS schema. This approach does not require zodb stubs. Versioning is optional. Workflow status and history (if required) are stored in the database. (This tutorial is very much a work in progress, but I figured it may be useful to make it public now)
- Overview Over this tutorial we will develop a timesheet system to demonstrate the various features of collective.tin.
- Creating the database (1) Database creation and a users table
- Creating the content types (1) Building a product and using collective.mercury
All content on one page (useful for printing, presentation mode etc.)
help me
i have a proplem when run products this, the brower say:
Traceback (innermost last):
Module ZPublisher.Publish, line 119, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 42, in call_object
Module zope.formlib.form, line 769, in __call__
Module Products.Five.formlib.formbase, line 55, in update
Module zope.formlib.form, line 750, in update
Module zope.formlib.form, line 594, in success
Module zope.formlib.form, line 861, in handle_add
Module zope.formlib.form, line 868, in createAndAdd
Module zope.formlib.form, line 877, in add
Module plone.app.content.browser.adding, line 13, in add
Module Products.Five.browser.adding, line 76, in add
Module OFS.ObjectManager, line 326, in _setObject
Module zope.event, line 23, in notify
Module zope.component.event, line 26, in dispatch
Module zope.component._api, line 130, in subscribers
Module zope.component.registry, line 290, in subscribers
Module zope.interface.adapter, line 535, in subscribers
Module zope.component.event, line 33, in objectEventNotify
Module zope.component._api, line 130, in subscribers
Module zope.component.registry, line 290, in subscribers
Module zope.interface.adapter, line 535, in subscribers
Module OFS.subscribers, line 107, in dispatchObjectWillBeMovedEvent
Module zope.app.container.contained, line 181, in dispatchToSublocations
Module OFS.subscribers, line 87, in sublocations
Module collective.tin.objectmanager, line 88, in objectValues
Module zope.app.component.hooks, line 96, in adapter_hook
Module collective.tin.container, line 143, in __init__
TypeError: ('Could not adapt', <UserFolder at /plone/sanhtq>, <InterfaceClass collective.lead.interfaces.IDatabase>)
i don't know fix it!
please help me!!!