Commit graph

108 commits

Author SHA1 Message Date
ee5a969fc2 renamed prototypes to uppercase first letter names; this implied renaming of file to Asset and of image to Picture to prevent clashes with helma's internal Image and File prototypes (including management mountpoints) 2004-03-20 18:13:50 +00:00
2f99c2cd03 fixed bug that prevented offline stories from being browsed 2004-02-24 16:34:57 +00:00
Robert Gaggl
588927e333 committed matthias platzer's language patch
(see http://grazia.helma.at/pipermail/antville-dev/2004-February/000489.html)
2004-02-16 17:51:26 +00:00
Robert Gaggl
4f301fb76c remove hopobjects by using their own method remove() now (the former way to call the remove() method of the parent and pass the object to delete is deprecated in helma) 2004-01-16 11:45:26 +00:00
32323abe65 cleaned up code 2004-01-12 16:44:25 +00:00
842e1a882d * removed deprecated wrapper macros for output of res.data.xxxlist
* replaced call for deprecated macro with response.xxxlist
2004-01-12 15:20:15 +00:00
f4d432efd6 merged skins representing two different states of an object (e.g. online/offline stories) into mgrlistitem.skin by using the newly added antvillelib's switch_macro 2004-01-09 19:21:47 +00:00
67b777ae58 removed obsolete files 2004-01-09 19:08:51 +00:00
fa973eb150 removed check for req.data.save on create_action to allow logged out users to post from the context menu after login 2004-01-08 14:36:22 +00:00
54878c2e4a check if topic name is already reserved word (e.g. action or function name) and display error message if so 2004-01-03 17:06:39 +00:00
419ca9c8c6 retouched layout to become more concistent 2004-01-02 22:06:37 +00:00
Robert Gaggl
d24ec09b93 use constant for editableby value which makes things more readable 2004-01-02 10:43:30 +00:00
Robert Gaggl
d0a89dda90 - simplyfied renderManagerView() 2003-12-08 22:36:46 +00:00
Robert Gaggl
dac6daefd5 css class "commentHead" was renamed to "listSeparator" 2003-12-08 22:28:28 +00:00
Robert Gaggl
98f73d3001 - css class "commentHead" was renamed to "listSeparator"
- minor layout changes
2003-12-08 21:59:52 +00:00
Robert Gaggl
873e28af49 instead of displaying "online stories" say "all stories" (since the list will contain both online and offline stories) 2003-12-08 21:13:45 +00:00
Hannes Wallnöfer
31041ab383 Make sure rawcontent field is set on stories and comments when the content is updated.
This fixes the bug that search doesn't work on Antville 1.1
2003-12-01 16:03:13 +00:00
Robert Gaggl
9d4676a0c9 - modified main_action to use global renderList() and renderPageNavigation()
- added offline_action() and mystories_action()
2003-10-15 20:08:02 +00:00
Robert Gaggl
f16666882d - embedded page navigation
- urls of filter options now point to actions in storymgr instead of main action using GET parameters
2003-10-15 20:04:56 +00:00
Robert Gaggl
db1794278e removed method renderStoryList() which is replaced by global renderList(), added method renderManagerView() that is passed as argument to global renderList() (this method does the actual rendering of an item in the list) 2003-10-15 20:00:43 +00:00
Robert Gaggl
fcaf16f869 added cases for actions "offline" and "mystories" 2003-10-15 19:57:28 +00:00
Robert Gaggl
00c9220f4f added collection "offline" that contains offline stories (used for filtering in storymgr) 2003-10-15 19:56:17 +00:00
Robert Gaggl
b2f57212f5 check if notification is enabled for a site by calling isNotificationEnabled() 2003-10-11 10:41:16 +00:00
7102df3f18 all notification e-mails are now sent via site/sendNotification function
(ie. story/sendNotification was removed.)
2003-10-08 16:17:22 +00:00
9cd4aa4b7d implemented first version of e-mail notification using kris' contribution (with slight modifications):
* since site preferences are stored as xml the corresponding code had to be adjusted
* currently, no notification is sent if a story's status changes from offline to online (abuse factor is too high)
* there's only one global notification skin used for the mail body
* the sender is always set to sys_email to avoid the bounce problem we already had with registration mails
2003-10-06 16:28:03 +00:00
Robert Gaggl
570c419ea1 rewrote permission framework: renamed isXxxDenied() to checkXxx(), all check-methods now throw a DenyException object instead of returning an Exception object 2003-09-07 21:02:26 +00:00
Robert Gaggl
1bb142aa57 initial check-in: merged former .hac files into single actions.js files 2003-08-02 12:20:05 +00:00
Robert Gaggl
b1d3bb6870 modified comments 2003-08-02 12:19:11 +00:00
Robert Gaggl
4dc576c5e0 - added checkAccess() that is called by onRequest() to check if a user is allowed to request a certain action
- modified permission check methods: they now return an Exception object in case a certain action is denied
2003-08-02 12:12:34 +00:00
Robert Gaggl
0d5d6fc8c1 minor code reformatting 2003-08-02 11:59:56 +00:00
Robert Gaggl
2d21b70a4d - changed to use AntvilleLib methods
- methods now throw an Exception object in case something went wrong or a Message object as positive result
2003-08-02 11:49:55 +00:00
Robert Gaggl
81f0c559e7 removed because .hac-files were merged into single actions.js files 2003-08-02 10:24:52 +00:00
Hannes Wallnöfer
112d619958 Replace FESI tryEval with real try statements. 2003-07-08 15:04:08 +00:00
Hannes Wallnöfer
0b7ea305ae Do not complain about missing topic when editing or creating a story,
even if its onlinestatus is 1. This error isn't right anymore because
there isn't a "add to topic" anymore, just a "add to front page" which
the user has deselected. Also, there are enough cases where an author
would want a story to be neither on the frontpage nor in a topic.
2003-04-14 14:15:08 +00:00
Robert Gaggl
fc64ce0a31 simplified evalNewStory(): use the second parameter onlinedefault if param.online is null 2003-04-07 21:01:37 +00:00
Robert Gaggl
9a4c5e0f9e changed deleteStory(): only set lastupdate of site to new Date() if deleted story was online 2003-03-27 09:15:42 +00:00
190e1457a5 added conditions in evalNewStory() to provide backwards compatibility between justintopic and addtofront macros 2003-03-25 15:59:53 +00:00
d863af23e0 added trim() function wherever content parts are set 2003-03-21 16:13:34 +00:00
5432cbe5b2 * modified story editor according to hannes' screenshot at http://help.antville.org/images/hns-editor
* added addtofront_macro() to display a checkbox that works vice versa to justintopic_macro()
* always set this.status in storymgr/create_action() to let the checkbox "know" whether it has to be checked
(known bugs: when editing a story neither this nor the "comments allowed" checkbox memorize their state when an error occurs.)
2003-03-20 18:53:55 +00:00
524d7a38a3 still fixed html where necessary to achieve maximum xhtml conformance; furthermore i tried to find a more expressive title for every page output (most of them were set to the site title only which does not help a lot when navigating with the browser history); last but not least many editor forms where adapted to gain a concistent general layout. 2003-03-07 19:27:48 +00:00
Robert Gaggl
c141a9a73f enabled rescueing of story-values also if publish-button was clicked 2003-03-03 12:18:03 +00:00
Robert Gaggl
f89b93db2a create-action now fits the needs of the new story-editor 2003-02-14 13:49:01 +00:00
Robert Gaggl
573f22600d modified evalNewStory because story/edit.skin changed, but it's still backwards-compatible to the old story-editor 2003-02-14 13:45:11 +00:00
Hannes Wallnöfer
62886837c3 Set cachemode of child objects to aggressive.
Fetching the IDs of storymgr children makes up a large part of the slow queries on
antville.org.
2003-01-30 14:35:49 +00:00
Hannes Wallnöfer
fc179f1fa7 Add new stories to the storymgr child collection instead of the site's child collection.
This way we can set the storymgr child collection to cachemode=aggressive.
Fetching the IDs of storymgr children makes up a large part of the slow queries on
antville.org.
The change in getting hrefs of new public stories is a workaround to a bug in
Helma that I fixed today.

fixed in CVS today
2003-01-30 14:34:36 +00:00
Robert Gaggl
ff01391d37 securityFunctions now need the membership-level of a user as second argument 2003-01-02 19:05:03 +00:00
Robert Gaggl
068a68f090 req.data.memberlevel is now passed as second argument to security-functions. with this they can also be used even when there's no request-object present (scheduler, bloggerApi) 2003-01-02 18:55:32 +00:00
Robert Gaggl
42e0f21580 merged need_for_speed branch 2002-12-01 19:26:40 +00:00
Robert Gaggl
44369d2c33 days are now calculated according to specified site-timezone by using global formatTimestamp() 2002-10-31 21:12:28 +00:00
ebc4b6ce27 added variable as flag if at least one story content is not null (it does not have to be the text property anymore) 2002-08-23 15:46:58 +00:00