Problem with SQLStorage
EFrank <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.archetypes.devel |
|---|---|
| Message-ID | <[email protected]> |
How do to save the "id field" in a MySQL database table?? Always it has a NULL
value!!! I tried to redefine the "ID field"in a archetype:
schema=Schema((
StringField('id',
required=1,
searchable=1,
storage=MySQLSQLStorage(),
widget=StringWidget(label_msgid="label_name",
description_msgid="help_name",
i18n_domain="quercus1"),
),
StringField('dni',
required=1,
searchable=1,
storage=MySQLSQLStorage(),
widget=StringWidget(
label='Dni',
label_msgid='quercus1_label_dni',
description_msgid='quercus1_help_dni',
i18n_domain='quercus1',
)
),
.............................
But, always it has a Null value in the BD
Too, I tried to set the property "callStorageOnSet = True" and the problem
continues.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click