Changeset 1450 for trunk/pylucid/PyLucid/install/update.py
- Timestamp:
- 02/27/08 19:34:49 (9 months ago)
- Files:
-
- 1 modified
-
trunk/pylucid/PyLucid/install/update.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pylucid/PyLucid/install/update.py
r1445 r1450 21 21 class Update2(BaseInstall): 22 22 def view(self): 23 self._redirect_execute(self._update) 23 self._redirect_execute(self._update_markup) 24 self._redirect_execute(self._update_tables) 24 25 25 26 return self._simple_render( … … 27 28 ) 28 29 29 def _update (self):30 def _update_markup(self): 30 31 print "update markup...", 31 32 # insert a new markup for html without TinyMCE … … 42 43 for m in Markup.objects.all(): 43 44 print "%5s - %s" % (m.id, m) 45 46 def _update_tables(self): 47 print "update database tables...", 48 try: 49 # FIXME: Can we use the ORM here? 50 cursor = connection.cursor() 51 cursor.execute("DROP TABLE PyLucid_pagesinternal;") 52 except Exception, e: 53 print "Error:", e 54 else: 55 print "OK" 44 56 45 57
