Commit graph

1849 commits

Author SHA1 Message Date
Robert Gaggl
82cba4c688 - changed editableby_macro(): it now produces three radio-buttons instead of one dropdown-box
- implemented justintopic_macro()
(contributed by michi platzer)
2003-02-14 13:46:52 +00:00
Robert Gaggl
316b89d09b changed input_macro() to handle input type=radio too (contributed by michi platzer) 2003-02-14 13:45:44 +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
Robert Gaggl
9a305be588 modified evalStory because story/edit.skin changed, but it's still backwards-compatible to the old story-editor 2003-02-14 13:44:40 +00:00
Robert Gaggl
741cd46f23 rewrote evalSite, creating a new site is now logged in syslog 2003-02-14 13:40:08 +00:00
Robert Gaggl
62617fc210 implemented icon-handling (contributed by michi platzer) 2003-02-14 13:38:50 +00:00
Robert Gaggl
f3b74ba3b8 replaced app.__app__.getAppDir() with File (app.dir) 2003-02-14 13:38:15 +00:00
Robert Gaggl
8b83030b41 - removed some senseless checks for param-object (if the param-object isn't existing it's an error)
- implemented renderInputRadio (contributed by michi platzer)
2003-02-14 13:37:33 +00:00
Robert Gaggl
a8b62186c2 changes in css for new storyeditor-skin:
added new css-classes "fieldset" and "fieldset p", changed formTitle and formText
2003-02-14 13:34:51 +00:00
c762fd0cb9 modified poll/calcPercent() function to calculate percentages of poll votes to become global/percentage() 2003-02-11 16:59:12 +00:00
b458c2cab1 removed shortcuts from antville. support of shortcut is now optional via zip module 2003-02-11 16:54:07 +00:00
1028d1e78d removed shortcut support which is now available as zip module 2003-02-11 16:46:43 +00:00
f91929bf31 replaced remaining tabs with three spaces 2003-02-11 14:51:12 +00:00
Robert Gaggl
18bd20d30a added _parent-definitions 2003-02-10 23:50:04 +00:00
Robert Gaggl
e49a0b37dd removed one ending span tag (http://project.antville.org/stories/289769) 2003-02-10 23:41:50 +00:00
Robert Gaggl
a3be8e9ac1 added _parent-definition (might fix this problem: http://project.antville.org/stories/288682/) 2003-02-10 17:29:43 +00:00
Robert Gaggl
2c21b69597 re-enabled caching of backlinks 2003-02-06 19:17:32 +00:00
Hannes Wallnöfer
c1ff7f04a5 * Use root.storiesByID to access stories in writeReadLog(). This doesn't require
loading the full story index anymore and is usually faster than loading the site
and all its substories.
* Rely more on default values when constructing Hashtables and Vectors. The first
time go with the default size, then just use the last size as initial size for the new
ones. This is because adjusting the capacity of a Vector or Hashtable with less
then 1000 objects is usually a no-brainer performance-wise.
2003-02-06 14:16:46 +00:00
Hannes Wallnöfer
28aaf2e1f8 Added accessname=TEXT_ID to storiesByID.
This is a trick to prevent the subnode index from being loaded when accessing
a single story.
2003-02-06 13:34:56 +00:00
Robert Gaggl
50f84bb12c changed content_macro():
- autoresponse is now only executed if param.autoresponse == "true" (before any value, even "false", would turn autoresponse on)
- removed form-encoding of value for input type text, this is now done in renderInputText()
2003-02-04 12:19:50 +00:00
Robert Gaggl
c6143a2b0c - removed form-encoding of req.data[param.name] in input_macro(): any form-encoding is now done in renderInput* methods if necessary 2003-02-04 12:19:36 +00:00
Robert Gaggl
051ec5d72e - changed alias_macro(): title is now the form-encoded description, urlparam now contains the escaped alias. both should avoid problems with special characters 2003-02-04 12:19:23 +00:00
Robert Gaggl
6e0ee0eda9 - removed unused function changeAlias()
- fixed a bug in evalImg(): immediatly return in case something is wrong/missing. before that any check for invalid characters was useless because execution would not be stopped. Also changed from isClean() to isCleanForName() which allows spaces, commatas, periods etc. but *not* umlauts.
2003-02-04 12:18:54 +00:00
Robert Gaggl
5dc112e6b2 - changed createInputParam(): value is not form-encoded anymore, this is done in renderInput* if necessary. 2003-02-04 12:18:37 +00:00
Robert Gaggl
6b4665cf38 added function isCleanForName() which is needed for checking image- and file-aliases for invalid characters. allowed are a-zA-Z0-9.-_space. the former used function isClean() is a bit restrictive for that, on the other hand umlauts etc. lead to problems. 2003-02-04 12:18:20 +00:00
Robert Gaggl
6e2e859d28 - removed unused function changeAlias()
- fixed a bug in evalFile(): immediatly return in case something is wrong/missing. before that any check for invalid characters was useless because execution would not be stopped. Also changed from isClean() to isCleanForName() which allows spaces, commatas, periods etc. but *not* umlauts.
2003-02-04 12:18:06 +00:00
Robert Gaggl
fd91f3f7e4 - removed deleting of property "as" in renderInputTextarea(), this is done in renderMarkupPart()
- removed form-encoding in renderInputButton()
- added form-encoding of value in renderInputText()
2003-02-04 12:17:48 +00:00
Robert Gaggl
20940d1aa3 changed createInputParam(): the value is now form-encoded, otherwise quotes would break the rendering 2003-02-03 11:24:08 +00:00
Robert Gaggl
6d33413ed7 encode image-alttext and title in renderImage(), otherwise an image-alttext with quotes would break the resulting image-tag 2003-02-03 11:17:46 +00:00
Robert Gaggl
242a5a67d9 delete param-property "what" in show_macro(), otherwise it will be rendered in img-tag 2003-02-03 11:15:34 +00:00
edd1ef1eb6 don't display user e-mail addresses in rss output if user.publishemail is set to false 2003-01-31 16:09:10 +00:00
bc37d92c9e generate etags depending on site.lastupdate 2003-01-31 15:48:06 +00:00
Michael Platzer
04ee438634 fixed a bug in evalURL(): http:// was preprended to the URL even if it started with mailto: 2003-01-31 09:39:10 +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
7e9716c4fa encode referrer for display (fixes bug 213, http://helma.org/bugs/show_bug.cgi?id=213) 2003-01-28 17:06:18 +00:00
Robert Gaggl
7ec367eb3e fixed a bug in evalStory(): setting editableby-property only if modifier equals creator, before it was impossible to switch editablyby to null again 2003-01-28 16:46:25 +00:00
Robert Gaggl
45a09ebde6 fixed a bug in isEditDenied(): modified isEditDenied(): added check for level == null, otherwise a story that is editable for subscribers and contributors is editable for everybody. 2003-01-28 16:45:02 +00:00
Michael Platzer
c84c7d669b bugfixing: if the story is edited by someoneelse than the creator of the story, then editableby was set to NULL, and therefore the story could only be edited by the creator in the following. 2003-01-24 16:28:22 +00:00
Robert Gaggl
1c982cb3af fixed a severe bug in onRequest(): getError() returns an object, and assigning this object to res.message throws an exception. But since this exception happens in onRequest() the rest of the function seem to be ignored, and the request ist processed ... 2003-01-24 13:41:24 +00:00
Robert Gaggl
e12402cc60 changed unsubscribelink_macro() to use constant SUBSCRIBER 2003-01-23 21:36:11 +00:00
Robert Gaggl
fe830047f7 changed level-checks because there's now a difference in meaning between level 0 and level null 2003-01-23 21:35:06 +00:00
Robert Gaggl
3e7d90e99f - changed evalRegistration: now special characters, eg. umlauts, dot, dash are allowed in user-names
- changed level-checks because there's now a difference in meaning between level 0 and level null
2003-01-23 21:34:52 +00:00
Robert Gaggl
663ff77022 added constant for SUBSCRIBER (== 0), fixed comments 2003-01-23 21:33:18 +00:00
Robert Gaggl
6a81fc9ee1 changed isDenied() so that only users who are allowed to add a story can access the shortcut manager 2003-01-23 21:31:57 +00:00
Robert Gaggl
bf40bb5ae9 changed default memberlevel from 0 to null (because 0 is the level of a subscriber) 2003-01-23 21:30:43 +00:00
Robert Gaggl
8f26d191a2 changed history_macro(): comments are not displayed if discussions are disabled either in site-preferences or for the story they belong to 2003-01-23 21:29:32 +00:00
Robert Gaggl
35f383a97e deleted isPostDenied() - using story.isPostDenied() instead 2003-01-23 21:18:56 +00:00
Robert Gaggl
6da9d2e618 now calling isPostDenied() of story instead of the comment-method (which was deleted since it didn't do anything different than the story-method) 2003-01-23 21:18:08 +00:00
Robert Gaggl
16e068ca81 changed isPostDenied(): posting comments is disabled either if discussions are disabled in site-preferences or for a story (fixes http://helma.org/bugs/show_bug.cgi?id=183) 2003-01-23 21:12:57 +00:00