Commit graph

459 commits

Author SHA1 Message Date
0d84e21291 Removed trailing semicolons after closing curly brackets for good (hopefully :) 2008-04-21 13:57:01 +00:00
124e6f4257 * Added protected skin files (currently prefixed with "$") that cannot be customized or overwritten by the user
* Removed obsolete skin files (ie. content moved to the protected skin file)
 * Moved contents of Messages.skins to their protected siblings
 * Prefixed notification skins (used in e-mails) with "notify_"
 * Fixed and simplified a whole bunch of issues in compatibility layer
2008-04-21 13:35:50 +00:00
7ba80fb9b9 * Removed gettext() call in global renderLink() method
* Fixed bug in Layout.image_macro() preventing the URL from being written
 * Wrapped output of Site.getStaticUrl in encodeURI() call
 * Removed test macro in Site.skin (AAAAAAAAAAAAAAA!)
2008-04-20 17:27:01 +00:00
9b4a5bc10e * Updated DB mappings of File/Files getting closer to the one of Image/Images
* Disabled ip address property in LogEntry (will be removed in the long run)
 * Removed custom property from Skin (still needs some care)
 * Removed commented code
2008-04-16 23:11:47 +00:00
29ca787190 * Added RSS output for tagged stories
* Fixe paging of tagged items
 * Fixed permissions of Archive when archive mode is "closed"
 * Fixed global breadcrumbs_macro for Root
 * Fixed default value for pageSize in site preferences to reset to the stored value if available
 * Reactivated Skins.safe_action
 * Removed debugging code
2008-04-16 18:03:41 +00:00
a10cf6bcc9 * Relocated setting of a site's file to create() method in the Files prototype
* Refactored Poll and Polls prototypes (still not really happy)
 * Fixed sorting of sites in Root.updates_xml_action()
 * Allowed access to debug_action in Root
2008-04-15 21:16:21 +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
578fcfc03a * Replaced relic of setContent() with setMetadata() in Comment.js
* Added $Global.skin as first attempt to move certain skins in a namespace protected from customization
 * Very much improved image editor interface
 * Thoroughly fixed and tested image upload, fetching, thumbnail generation and replacement
2008-04-15 15:01:20 +00:00
98fbd6158b * Edited messages
* Removed obsolete lines from app.properties
 * Re-enabled setting of res.skinpath in HopObject.onRequest
 * Fixed images collection in Tag prototype
2008-04-12 18:55:08 +00:00
84492cc922 * Modified HopObject.link_macro() to automatically capitalize the default link text
* Added global i18n.js file containing markgettext() calls
 * Wrapped messages with gettext macros wherever found missing
 * Moved contents of remaining diff skin files to Skin.skin
 * Removed Layouts prototype
 * Removed obsolete files
2008-03-27 15:10:31 +00:00
0ba8805d02 * Fixed skin names according to issue #16
* Fixed rendering of values stored in res.meta.values
 * Removed obsolete code (mostly disabled by comments already)
2008-01-19 17:36:33 +00:00
264306f0fb Replaced remaining occurrences of pagenavigation with pager 2008-01-13 01:44:36 +00:00
9b7af5620a * Finally moved page.skin, stylesheet.skin and javascript.skin as subskins into Site.skin
* Disabled file tags for now
 * Renamed global renderPageNavigation() method to renderPager()
 * Added support for rendering the list of updated sites in global list_macro()
 * Fixed return point when cancelling a file edit action
 * Fixed nasty bug in deletion routine
 * Implemented sorting of values in Layout.values_macro()
 * Disabled layout title, description, origin and sharing for now
 * Renamed list_action() to sites_action() in Root prototype
 * Enabled filter of root site in default collection
 * Moved Root's list.skin as subskin in Root.skin
 * Added experimental Root.search_xml_action()
 * Renamed "unpublish" link to "close" in Story list
 * Reduced display of backlinks to last 24 hours
 * Removed obsolete skin files
2008-01-13 01:39:01 +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
9637ccceae Fixed calculation of limit (5 is default, 1 minimum, 20 maximum) 2008-01-05 00:53:43 +00:00
5bec96cd9f * Fixed a few issues in global list_macro() method
* Renamed tags collection to $tags in Root
 * Fixed a few links in page.skin and Site.skin of Site
 * Added CSS class for selected calendar day
 * Fixed skin name for rendering tag items
 * Fixed default skin name for rendering tag items
 * Removed obsolete Tag.properties file
2008-01-05 00:44:34 +00:00
8a70b51e71 * Added jala.ListRenderer repository (needed by Tags)
* Fixed calendar layout (yet to be tested with other browsers)
 * Fixed display of stories per tag (wrong skin name)
 * Replaced relic of res.handlers.context with res.handlers.site
2008-01-04 17:30:07 +00:00
1809b27949 * Added global quote() method which wraps quotes around any string containing whitespace
* Moved data created by the global value_macro() into res.meta.values namespace
 * Ignore case of res.meta.values keys
 * Added reset_action() to Layout
 * Write/retrieve basic layout information into/from Layout#values subskin
 * Renamed key names of basic layout information for convenience (eg. "background color" instead of "bgcolor")
 * Fixed Layout.remove() method according to generic approach
 * Fixed digest generation for main.css and main.js output
 * Added Skin.render() method (ie. to the application prototype, NOT Helma's internal Skin class)
 * Removed obsolete code
 * Removed obsolete files
2008-01-04 14:05:58 +00:00
8c1aca06be * Renamed global meta_macro back to value_macro (back and back and forth and forth)
* Added Layout.values_macro
 * Removed obsolete code
 * Moved value_macros from Site's stylesheet skin to Site#values
 * Render Site#values skin before stylesheet skin
2007-11-25 16:24:07 +00:00
3efbd63046 * Moved value_macro from Layout to Global.meta_macro (still thinking)
* Removed some lines of obsolete code
 * Reduced layout functionality to 1 (one!) layout per site as a first step to eliminate future obstacles of backwards compatibility
 * Fixed Images.main_action for layout images
 * Aggregated functionality of layout export in one method (Layout.export_action)
 * Extended functionality of layout import to every layout (ie. any comptabile layout can be imported to any site)
 * Fixed some minor bugs
2007-11-23 17:57:59 +00:00
4e2a6fe465 * Defined getter method for jala.i18n to retrieve a site's locale
* Small change in Images.Default procedure
2007-11-03 22:02:30 +00:00
a63f1725b3 * Added Messages.skin file to Admin prototype
* Removed obsolete skin files
 * Removed obsolete onclick handler of default images
 * Modified handling of Images.Default once again to fix wrong URLs
 * Made some progress in layout management: every skin can be edited via one persistent URL; skin outlines are working again
2007-11-03 20:18:18 +00:00
6c38fdba68 * Added actual Image objects to Images.Default to enable common rendering of all images
* SLightly modified Image.constructor() method to allow creation of Image objects on code compilation
 * Added links to Antville and Helma logo images in Site/page.skin
2007-11-03 11:51:49 +00:00
3d0fae4302 * Fixed bug in Admin.renderItem accidentally introduced in one of the last commits
* Slightly elaborated on what happens when a site or a user is blocked
 * Fixed some permission issues
 * Removed some more obsolete skin files
 * Re-introduced Root.search_action() method with minimal output
 * Switched search method from GET to POST
 * Added User.logout() method
 * Fixed User.require() method (check for TRUSTED constant was missing)
2007-10-16 21:36:41 +00:00
75644bde63 * Re-implemented autosave feature (ie. automatic backup / restore) for stories and comments
* Removed obsolete rescue methods
 * Moved contents of many individual skin files as subskins in the corresponding prototype skin file
 * Moved commentform_macro of Story prototype into compatibility module
2007-10-16 16:48:14 +00:00
3e8c4c6313 * Separated the global setup settings from those in the root site's preferences
* Added encoding="form" parameter to most of the macros using the request handler
 * Renamed commentsMode to commentMode (comments_mode to comment_mode in DB)
 * Reactivated notifications in a simplified manner
 * Throw an error in global sendMail() method if arguments are not sufficient
 * Added HopObject.notify() method
 * Added HopObject.kind_macro() method (provides the constructor's name in lowercase)
 * Added Messages.skin containing subskins suited for e-mail output
 * Removed obsolete skin files
 * Added reset_action() method for resetting a user's password to Members prototype
 * Added require() method to Membership prototype; wrapped static require() method around it
 * Added Membership.notify() method which does all the member-related notification stuff
 * Send notification on membership removal
 * Fixed contact form in Membership prototype
 * Dropped e-mail property from Site prototype (users can be contacted via Membership.contact_action(), Root prototype has extra e-mail property)
 * Added missing getPermission() method to User prototype, always requiring a privileged user
2007-10-15 23:29:03 +00:00
504260650e * Reactivated mail queue as app.data.mails
* Reactivated request log as app.data.stories
 * Removed many obsolete methods
 * Fixed and added HTML tags for RSS feeds to page.skin
 * Added Stories.flushRequests() method
 * Renamed Story.incrementReadCounter() method to Story.logRequest()
 * Moved many methods to compatibility module
2007-10-12 19:05:33 +00:00
d639d6901c * Moved contents of Admin.skin files distributed among variout prototypes into Admin.skin of Admin prototype (the code has become uglier and must be ironed out but at least skins are where they belong)
* Removed obsolete navigation skins
 * Moved page navigation skins into Global.skin
 * Removed remaining obsolete RSS skin
 * Moved admin navigation into subskin and added it via overwritten skin_macro in Admin prototype
 * Removed obsolete sysmgrnavigation.skin from Root
 * Renamed style.skin to stylesheet.skin (this could be hazardous regarding b/w compatibility...?)
 * Modified order of featured collection in Stories prototype
 * Re-added DB column and property for last visit date of a user (now simply called "visited")
2007-10-12 16:39:26 +00:00
3412d805c7 * Removed obsolete skin files
Switched to Rome for RSS generation:
 * Added necessary JAR files (new subdirectory "lib")
 * Removed obsolete skin files
 * Added basic skins for XSL transformation
 * rss.xml of Root prototype is now equal to the one of Site; site updates have been moved to updates.xml
2007-10-12 10:20:46 +00:00
df9017ab77 * Fixed reference to parent site in Archive
* Fixed _children.filter in Archive
 * Added missing permission checks
 * Modified global defineConstants() method to return the getter function instead of automatically defining it with given argument
 * Added HopObject.macro_macro() method to display userland macro code
 * Removed colorpicker (will be replaced by third-party library)
 * Removed obsolete global constants and functions
 * Overhauled and tested global userland macros like story_macro(), image_macro() etc.
 * Implemented global list_macro() to replace any special listFoobar_macro() methods
 * Moved global autoLogin() method into User prototype
 * Overhauled global randomize_macro()
 * Renamed global evalURL() method to validateUrl() as well as evalEmail() to validateEmail()
 * Re-added accidentally removed subskins to Members.skin
 * Fixed some skin names which were changed recently
 * Remove delete_action() from Membership
 * Fixed foreign key of images collection in Membership
 * Removed global username_macro() and replaced it with appropriate membership macros
 * Moved contents of systemscripts.skin into javascript.skin in Root prototype
 * Removed main_css_action(), main_js_action() and sitecounter_macro() methods from Root
 * Added accessname to sites collection in Root
 * Upgraded jQuery to version 1.2.1
 * Replaced call for global history_macro() with corresponding list_macro() call
 * Renamed "public" collection of Stories prototype to "featured"
 * Moved a lot of styles from Root's style.skin to the one in Site
 * Added comments collection to Site
 * Moved embed.skin as subskin #embed into Site.skin
 * Fixed some minor issues in Story.js (removed check for creator before setting the story's mode)
 * Defined cookie names as constants of User which can be overriden via app.properties userCookie and hashCookie
 * Moved a lot of code into compatibility module
2007-10-11 23:03:17 +00:00
77845f0121 * Fixed Admin prototype according to recent changes (not finished yet) 2007-10-11 13:24:50 +00:00
3cccb901f2 * Extensively tested and aligned new permission framework for the first time
* Changed order of filters in collection handlers (member items go first, all items last)
 * Fixed global file_macro and image_macro methods
 * Reactivated Images.Default
 * Added Layout.value_macro to allow per request definitions of variables for the CSS stylesheet (still experimental)
 * Finally removed PropertyMgr (replaced by Metadata)
 * Renamed a bunch of collections, mountpoints and variables
 * Reduced commentsMode options to "enabled" and "disabled" in Site prototype
 * Renamed "shared" mode to "restricted" in Site prototype
 * Moved a lot of stuff into the compatibility module
2007-10-08 23:55:29 +00:00
6e28d59eeb * Disabled mail and indexing cronjobs in app.properties
* Re-enabled calendar by switching to jala.Date.Calendar
 * Removed obsolete calendar skins
 * Re-enabled story archive by replacing Day prototype with new Archive prototype
 * Moved story collections from Site to Stories prototype
 * Enabled second option by default in HopObject.checkbox_macro
 * Removed debugging code from Members/login.skin and User.js
 * Replaced remaining occurrences of res.handlers.context with res.handlers.site
 * Moved sites back from Root.sites to Root._children collection
 * Moved Site.loginstatus_macro to Membership.status_macro
 * Delegated rendering of story list in main.skin to archive
 * Replaced Site.renderStorylist with Site.stories_macro
 * Removed redundant Site.getMembership (see User.getMembership)
 * Removed (currently) obsolete indexing methods
 * Fixed some minor issues lately introduced
2007-10-06 10:26:30 +00:00
01b59957e4 Applied generic framework to Poll, Choice and Vote prototypes
* Renamed PollMgr to Polls
 * Removed graph.skin from Choice prototype
 * Improved Choice skins by replacing param with choice handlers
 * Unified output of Choice totals in choice.votes_macro
 * Moved creation of new choices to client-side JavaScript
 * Added labels for radiobuttons
 * Added HopObject.radiobutton_macro
 * Cache / reset status of story when rotating
2007-10-04 18:48:35 +00:00
c3a9a9c79d * Big improvements of generic framework in Story, Skins, Skin, Images, Image, Layouts and Layout prototypes
* Added first story formatting filters
 * Fixed global breadcrumbs_macro
 * Improved distinction check for layout images
 * Re-added accidentally removed replace action for layout images
 * Moved mostread_action from Site to Stories.top_action
 * Replaced links to topics with those to tags
 * Re-enabled referrers
 * Switched default permission poplicy from allow to deny in some prototypes
 * Added redirect from main_action of a skin to its edit_action (that's where all editing is taking place now)
 * Merged default and custom skin editor (still needs tweakin' of potential moving / renaming issues)
 * Renamed getNavigationName() methods to getTitle()
2007-09-30 23:59:13 +00:00
6a9e1094e1 Intermediate commit:
* Continued work on Story and Comment prototypes
 * Fixed some minor issues introduced lately
2007-09-29 00:58:04 +00:00
4b8d6a823b Intermediate commit:
* Continued work on Story prototype
 * Fixed some minor issues introduced with recent commits
2007-09-27 17:39:02 +00:00
83da4c933b Intermediate commit:
* Started implementation of new framework on Story prototype / text table
 * Continued work on layout prototypes
 * Fixed some issues introduced lately
2007-09-26 22:22:37 +00:00
0d3d1d27a3 Intermediate commit:
* Renamed ImageMgr to Images
 * Fiddled with more elegant context switch between Layout and Site images (still a little bit messy)
 * Added getUrl and getDirectory methods to File and Image
 * Moved global getPoolObj to HopObject.getFromPath
 * Moved global renderImage to Image.render
 * Moved global DefaultImages to Images.Default
 * Moved global thumbnail constants to Image
 * Moved global evalImageType to Image.validate
 * Streamlined image_macro (good-bye pop-ups!)
 * Added HopObject.upload_macro to support file upload form element
 * Added conversion and compatibility scripts for images and layouts
2007-09-22 21:48:33 +00:00
4fc7aa9f60 Intermediate commit:
* Implemented first basic version of skin management using subskins
 * Added remove() method to HopObject and most object prototypes which are automatically called after confirmation in HopObject.delete_action()
 * Enhanced support for various form elements via HopObject macros
 * Added HopObject.removeChildren() method
 * Removed color and font settings in layouts (maybe just temporarily)
 * Implemented generic framework for layouts and skins
 * Renamed LayoutMgr to Layouts and SkinMgr to Skins
 * Renamed "properties" property to "metadata" (finally)
 * Added conversion and compatibility code for the changes
2007-09-21 13:54:30 +00:00
f0e0303203 * Cleaned up and reworked admin section (especially sites)
* Merged SysLog and AccessLog into new LogEntry prototype
 * Established new global logAction()
 * Moved admin-related skins as subskins into Admin.skin files
2007-09-17 21:43:50 +00:00
7eb13bd43a * Renamed SysMgr to Admin
* Added handleMetadata method to define getters and setters for metadata properties
 * Reduced and renamed value() method to map()
 * Renamed most of the sys_* properties
2007-09-14 23:25:23 +00:00
8ec0a35c27 Renaming MemberMgr prototype to Members 2007-09-14 13:24:21 +00:00
07dfe70adc Renaming MemberMgr prototype to Members 2007-09-14 13:21:21 +00:00
5841f057bc * Overhauled listing of memberships and subscriptions
* Fixed un/subscribe, add/remove member actions
 * Removed some obsolete code
 * Renamed role "Admin" to "Owner"
2007-09-14 13:13:50 +00:00
c7d828aae9 * Extended Root from Site prototype (still buggy due to http://helma.org/bugs/show_bug.cgi?id=553)
* Overhauled Membership prototype (generic framework, DB structure)
 * Added necessary compatibility code
 * Started re-implementation of permission framework (looks promising!)
2007-09-14 00:16:06 +00:00
d46237ae55 * Removed obsolete HelmaLib-1.0 and AntvilleLib-1.4
* Converted most site properties to metadata
 * Implemented generic framework into Site prototype
 * Added basic form support to generic framework
 * Added support for positionl parameters in some macros (e.g. link_macro, skin_macro, created_macro)
 * Added link_filter to Global and HopObject
 * Added check for "Cancel" in HopObject's onRequest()
 * Had to disable display of disk usage in SysMgr due to an issue that has to be resolved, yet
 * Added support for various new site preferences (at least in the form :)
 * Removed some code related to Lucene search until it's clear how search will work in the future
 * Added quite a lot code for backwards compatibility
 * Updated database patches
2007-09-08 17:20:59 +00:00
d274db390a * Started remodeling database structure for Site prototype
* Fixed autoLogin() method to work with overhauled user management
2007-08-26 22:03:24 +00:00
e9a7800a87 * Fixed security issue caused by sensitive property in req.data
* Fixed issue caused by setting a Metadata property to a Java value, e.g. java.net.URL instance becomes string without quotes. (Could this be a Rhino bug?)
 * Finalized conversion of AV_USER table to simple naming scheme ("user")
 * Added global getTitle() method which returns either site.title or root.sys_title
 * Implemented universal HopObject.value() method
 * Rededicated User.update() method since its previous functionality is now taken over by User.value()
 * Restructured login and register functionalities in User and MemberMgr
 * Replaced first occurrences of Exception with Error
 * Introduced i18n via gettext in User and MemberMgr
 * Removed getMessage() and Message in User and MemberMgr
 * Added first possible implementation of global getPermission() method
 * Modified code of global evalEmail() and evalURL() methods to work with Helma modules
 * Simplified global sendMail() method by not throwing any MailException anymore and returning the status code only
 * sendMail() now is using helma.Mail (so we can debug message output)
2007-08-23 17:17:40 +00:00