Petr Jakes schrieb: > Hi, > I have to work with an existing database. I can not change the > structure. Beside I have some static/text informations, that are not > stored in the database (Company name, contacts, phone numbers > etc...). > > These informations can be changed time by time (when employee left the > company for example) so I guess to put these lines inside the Python > code (say in the controllers.py) or directly in the kid template is > not a good idea. > > I would like to know, what is the best way to store such a info > (where, which file format) and how to show them in the template.
You can't add tables? Sounds odd. One way to accomplish your goal would be the i18n of TG. By giving the names generic expressions, such as "COMPANY_NAME", you can then use the gettext-locale-messages to translate to the proper value. And you might consider using a CSV-file as part of your application that you load and use with the python csv-module. But the best solution certainly *is* to change the DB. Diez --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

