Commit graph

50 commits

Author SHA1 Message Date
3c55710d08 Fixed bug caused by non-existing directory for default layout 2008-04-22 13:09:11 +00:00
ce6f218951 * Added conversion for inherited layout images (almost forgotten!)
* Added output of (log) messages showing durations of retrievals and updates
2008-04-22 12:58:39 +00:00
fb6d130603 Enabled SQL statements for removing legacy data 2008-04-21 20:49:30 +00:00
eefa9ed990 * Removed grouping in SQL for converting topics to tags
* Fixed SQL for copying the contents of AV_IMAGE to new image table 
 * Removed trailing semicolons after closing curly brackets for good (hopefully :)
2008-04-21 13:50:21 +00:00
89fbeb5715 Added code to rename default layout directory to "layout" 2008-04-21 08:47:19 +00:00
86c3ba0ad2 Good morning, stupid typo! 2008-04-21 07:52:40 +00:00
103b45f72e * Fixed stupid typos in recent SQL changes
* Check if an image description exists before writing it to metadata
2008-04-21 07:49:25 +00:00
fe969537fd * Replaced calls for id() by preceding/subsequent alter statemtents en/disabling auto_increment on the primary key
* Added key for name in tag table
 * Decreased bulk size of select statements
 * Moved release() call inside bulk loop again in traverse() method
2008-04-20 22:34:17 +00:00
363b0b6dc2 Added constraint to not delete layout images at all when reducing the image table size for testing purposes 2008-04-20 17:30:26 +00:00
4071fbeee0 * Fixed some column sizes according to Antville.org's needs
* Fixed syntax error
 * Added delete statements for AV_TEXT and AV_IMAGE to reduce size of database for testing purposes
2008-04-19 20:06:28 +00:00
2e6cd1d522 Modified conversion code for AV_IMAGE and AV_TEXT still trying to gain more speed: now new tables are created and the records are copied from the old table 2008-04-18 23:05:11 +00:00
fad6d218a9 * Merged alter statements going over multiple lines into one single statement (should be faster)
* Trying out new way to drop the index keys from AV_TEXT by creating the content table with its index keys from scratch and copying data from AV_TEXT
 * Fixed bug in error handling preventing output and termination
2008-04-18 17:03:29 +00:00
d5199708a4 Added global clean() method: "I'm in ur string zapping all teh gremlinz!" 2008-04-18 13:39:44 +00:00
5de56bbaca Check skin source name before trimming 2008-04-18 13:10:05 +00:00
b9e3311486 * Moved locks on tag and tag_hub tables to corresponding SQL scripts
* Renamed write() method to msg()
2008-04-18 12:35:21 +00:00
a7b9e0b668 * Trying different arrangement of SQL statements to gain speed
* Fixed typo
2008-04-18 12:06:39 +00:00
ba68c4acf3 * Added table locks
* Rearranged order of statements to (hopefully) increase speed
2008-04-18 09:47:55 +00:00
95b0ec404b Only call finalize() if init() was called before 2008-04-18 09:46:00 +00:00
134a384ab8 Re-enabled logging of update statements 2008-04-17 20:52:14 +00:00
d27f6fe93d * Modified output: log() pipes to app.log and write() only returns short feedback over the web
* Moved blinking status indicator into separate scheduler
2008-04-17 20:35:56 +00:00
0a695bf6a0 Fixed updater to reliably output more meaningful information as well as to correctly exit on failures and when finished 2008-04-17 16:14:18 +00:00
e337cf0569 Fixed log and debug output 2008-04-17 13:51:11 +00:00
712febb8dd * Decreased size of log to requests of the current date
* Fixed conversion of AV_SYSLOG: needs auto_increment in log
2008-04-17 07:10:56 +00:00
5264ec3987 * Added call for trim() before writing a skin source to file
* Added SQL to remove obsolete indexes and add new ones
  * Finally enabled conversion of AV_ACCESSLOG table (still not finished, though)
  * Cleaned up SQL code
2008-04-16 23:14:38 +00:00
b1b97ce864 * Removed extra file name handling for images from compatibility layer (which is very nice!)
* Improved image data conversion in updater to only create thumbnail information if there actually is a thumbnail available
 * Fixed some minor issues introduced with the latest changes
2008-04-15 15:19:42 +00:00
63b308a3ef * Excluded content of Message.skins et al. from copying to site layouts
* Added final "OK, good" message to update log
 * Removed obsolete SQL statements
2008-04-14 16:43:36 +00:00
22a1d1a458 Extra setting (var)char columns to UTF-8 is not necessary when converting a whole table's character set 2008-04-13 15:04:29 +00:00
80cff664ef Trying to fix some encoding issues by converting tables/columns to UTF-8 2008-04-13 15:01:10 +00:00
fde500c6dd Second try to fix doubled #values subskin 2008-04-13 12:20:30 +00:00
d34534d210 * Hopefully fixed bug causing #values subskin to appear twice (once empty)
* Added support for staticPath from antville's app.properties
2008-04-13 12:12:26 +00:00
7ce90c739e Load jQuery directly from google.com for now 2008-04-12 18:39:34 +00:00
f1e89009d5 * Renamed sql.skin to convert.skin
* Renamed Updater.js to convert.js
 * Added verification of version number and running state
2008-04-12 18:06:42 +00:00
dd5a0de1ba Refactored the updater back to a stand-alone app 2008-04-12 17:31:20 +00:00
efab46c806 Removed Updater prototype due to refactoring the updater to a stand-alone app 2008-04-12 15:12:57 +00:00
22f8632ae1 * Modified updater app to work as repository; thus, code from the main Antville app can be re-used
* Moved all files from Global to new Updater prototype (which is added as mountpoint from within Root)
 * Defined updater, convert and sql as global properties (hope this does not interfere with any third-party Antville installation)
2008-03-24 13:14:53 +00:00
933220031f Added missing final call for save in convert.skins method 2008-03-24 12:18:46 +00:00
e87c850462 Approached final skin/layout conversion by merging skin sources with their parents and writing them as subskin to the corresponding file 2008-03-24 11:31:56 +00:00
47801bbfa3 * Renamed list_macro to stories_macro in Archive and Site (still undecided with the naming, obviously)
* Commented out redundant rendering of layout values
 * Added static Layout.VALUES array
 * Commented out READONLY mode of comments for now
 * Fixed custom content handling in Story (however, content_macro still needs to be fixed!)
 * Fixed rendering of date header by correcting references to Story#date skin
 * Added aspects for b/w compatible story editing
 * Cleaned up aspects
 * Fixed deprecated Story macros for b/w compatibility
 * Added missing entries to translation table of updated app
2008-03-04 17:01:31 +00:00
ce76bd48b5 Added code to replace layout.XXX macros with corresponding value macros and thus, sparing the compatibility layer some transformations 2008-01-19 18:44:44 +00:00
22308dd329 Added special hack to link from Membership back to Members in some subskins 2008-01-19 18:30:45 +00:00
5044e3610a Improved renaming algorithms to move skin sources from the database to their new places as well as replacing their macro calls with the updated prototype and skin names. (This looks like the way to go, yay!) 2008-01-19 11:18:55 +00:00
0e26b83eb5 Removed the ugly work-around to correctly render compatible skins introduced with a recent commit. Instead, the updater application takes care of already producing usable skin files (ie. all skins go as subskins in a file named after the corresponding prototype) 2008-01-18 19:39:40 +00:00
ece3bedc6d * Moved some compatibility fixes from main application code to compatibility layer (aspects)
* Moved complete navigation from Site's page.skin to Site#navigation skin
 * Fixed compatibility macros with checks for deprecated skins
 * Fixed bug preventing layout directory from being removed and overwritten with current layout files when dumping skins in updated application
2008-01-06 14:15:55 +00:00
65359c0482 * Improved HopObject.link_filter() method to fallback to main action by default - unlike HopObject.link_macro()
* Added missing cases for Tags and Root prototypes in Images.getPermission() and Images.main_action()
 * Extended Story.url_filter() to display files as link followed by the host in brackets
 * Renamed type.properties to ImageMgr.properties in compatibility layer
 * Fixed most compatibility methods of File, HopObject, Image, Members, Membership, Metadata prototypes
 * Fixed a few compatibility methods in Root, Site and Story prototypes
 * Fixed creation of Image.thumbnailName in updater
 * Added setting of Image.contentType in updater
 * Fixed creation of thumbnail information in SQL for image conversion
 * Added target to create log table in case ACCESS_LOG is too big to be dumped from original database
2008-01-05 17:57:39 +00:00
874d8c6b58 * Added fix to remove whitespace before "px" in CSS values
* Lowercased keys of basic layout information
2008-01-04 14:10:30 +00:00
bf93e608e4 Dump active skins to new (single) layout directory 2007-12-07 16:53:04 +00:00
aa11e5db88 * Replaced occurrences of User.visisted with User.modified
* Set application's charset to UTF8
 * Added Layout.getFile() method returning the layout's directory as helma.File
 * Simplified Layout.getSkinPath() method (still work in progress)
 * Replaced occurrences of Site.language with Site.locale
 * Modified some wording
 * Added slight b/w compatibility fix in Story.macro_filter() method
 * Added timex factor in Story.getDelta() method to prevent counting  edits as site updates in-beteen 10 minutes
 * Moved site-related aspect hooks to Site prototype of compatibility module
 * Removed obsolete conversion code in compatibility module (has moved to updater app)
 * Re-included spacer_macro() method in compat. module
 * Temporarily overwrote HopObject.renderSkin() method to debug skin rendering process
 * Replaced individual legacy macros of Layout prototype by appropriate code in onUnhandledMacro() method (compat.)
 * Reflect legacy macros of Layout prototype in value() method of compat. module
 * Added and improved compatibility methods
 * Implemented support for renamed prototypes in updater app (still needs to be applied for database, too)
2007-10-21 16:49:16 +00:00
1df1c87525 * Added version headers
* Renamed status_js_action() to out_action()
 * Fixed column names when setting metadata of Site objects
 * Renamed print() method to log()
 * Replaced println() method with debug() which is a wrapper for log() when debug is set to "true" in app.properties
 * Fixed SQL scripts
 * Re-arranged order of SQL rename statement (comes first now)
 * Moved update of AV_SYSLOG table to last position because it already needs the updated user table
2007-10-19 18:59:04 +00:00
2578fcd36f * Finalized user and skin conversions
* Fixed output encoding
2007-10-18 02:15:10 +00:00
00a6aa86a1 Initial commit of Updater app 2007-10-18 00:33:05 +00:00