wiki:DeveloperGuidelines/FAQ

Version 3 (modified by Pratyush Nigam, 14 years ago) ( diff )

--

Frequently Asked Questions (FAQ)

Frequently Encountered Problems

  • If it happens that you notice the following in the Traceback of the ticket encountered after a fresh pull -

OperationalError: Cannot add a UNIQUE column

Then it is highly likely that there is a data migration issue. In this circumstance, it is recommended that the contents of the folder /eden/database/ be deleted. For more, information in this regard and any other related problem, the following links can be referred from -
http://eden.sahanafoundation.org/wiki/TroubleShooting
http://eden.sahanafoundation.org/wiki/DataMigration

Select Element for Users

By: Robby O'Connor
Date: 2010-05-21

To have a field displayed as a select element which has the names of the users in the database:

<table>.<field>.requires = IS_NULL_OR(IS_IN_DB(db,db.auth_user.id,lambda id : shn_user_represent(db.auth_user.id)))

DeveloperGuidelines

Note: See TracWiki for help on using the wiki.