ian%hixie.ch
|
bd02b41d6b
|
Fix some bugs with the pendingCommand escaping code: First, extra spaces were being inserted (so much for s///x). Second, the escaping was actually modifying the original keys. Third, there were some logic errors that caused underescaping or resulted in the wrong key being escaped.
git-svn-id: svn://10.0.0.236/trunk@120911 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-07 01:50:22 +00:00 |
|
ian%hixie.ch
|
eaed54eda6
|
Lots of tweaks, mainly to make the source look pretty. Also hid the Settings header if there are no important settings.
git-svn-id: svn://10.0.0.236/trunk@120907 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-07 01:32:28 +00:00 |
|
ian%hixie.ch
|
dc84debdd8
|
Correct a typo: Output is done through the application object, not the user prefs object...
git-svn-id: svn://10.0.0.236/trunk@120897 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 23:05:08 +00:00 |
|
ian%hixie.ch
|
bab803e830
|
Add an additional check that the change ID is valid
git-svn-id: svn://10.0.0.236/trunk@120892 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 22:59:22 +00:00 |
|
ian%hixie.ch
|
97a39903b1
|
Forgot to fully convert the templates to Template Toolkit: nested dots need to be escaped differently now. Also added filters to the URI fragments so that spaces get escaped properly. They'll be stuck together at some point.
git-svn-id: svn://10.0.0.236/trunk@120872 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 21:15:05 +00:00 |
|
ian%hixie.ch
|
509dbdd477
|
Forgot to fully convert the templates to Template Toolkit: nested dots need to be escaped differently now
git-svn-id: svn://10.0.0.236/trunk@120869 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 21:05:28 +00:00 |
|
ian%hixie.ch
|
7fa663701f
|
Add more information to the hash passed to the change of address outputs
git-svn-id: svn://10.0.0.236/trunk@120865 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 21:01:48 +00:00 |
|
ian%hixie.ch
|
25757cccba
|
Remove the 'html' bit from the filenames.
git-svn-id: svn://10.0.0.236/trunk@120864 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 21:00:53 +00:00 |
|
ian%hixie.ch
|
91bcd3f99e
|
E-mail templates
git-svn-id: svn://10.0.0.236/trunk@120828 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 12:53:53 +00:00 |
|
ian%hixie.ch
|
9cf6b26355
|
Remove the 'html' bit from the filenames.
git-svn-id: svn://10.0.0.236/trunk@120826 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 11:03:12 +00:00 |
|
ian%hixie.ch
|
aa3b6dd129
|
Ok, handle undef in getArgumentsFromString the same as an empty string. This function sometimes gets called with the result of peekArgument(), which could be undef.
git-svn-id: svn://10.0.0.236/trunk@120825 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 10:10:57 +00:00 |
|
ian%hixie.ch
|
bba2709b08
|
There's a bug somewhere which results in the expansion of an undefined string. This assertion should help track it down.
git-svn-id: svn://10.0.0.236/trunk@120824 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 09:55:19 +00:00 |
|
ian%hixie.ch
|
a31edff424
|
Oops, forgot to make the primary key ID an auto_increment column.
git-svn-id: svn://10.0.0.236/trunk@120823 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 09:53:01 +00:00 |
|
ian%hixie.ch
|
781a940078
|
getFields returns an arrayref, so we have to dereference it before using it in a foreach loop.
git-svn-id: svn://10.0.0.236/trunk@120820 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 05:51:02 +00:00 |
|
ian%hixie.ch
|
1b4265f8b6
|
Oops, I was stomping on the fieldsByID property by treating it as a function instead of a hash. Also add in an assertion to check that insertField() is always called with a real field.
git-svn-id: svn://10.0.0.236/trunk@120819 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 05:50:06 +00:00 |
|
ian%hixie.ch
|
086b5ab6a1
|
Make user fields all provide the user.field service so that they can be easily recognised.
git-svn-id: svn://10.0.0.236/trunk@120818 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 05:48:48 +00:00 |
|
ian%hixie.ch
|
10cfb5209d
|
Change the expected field category name from 'detail' to 'personal' for consistency
git-svn-id: svn://10.0.0.236/trunk@120817 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 05:26:00 +00:00 |
|
ian%hixie.ch
|
d6a5a371d4
|
When getting ones password sent without getting a login failed message first, the pending command is the request to send a new password... so you get sent back to that once your password is sent. That's not good. This fixes it by moving the pendingCommands code to the login.failed page and making the login.detailsSent page only show the continue button when appropriate.
git-svn-id: svn://10.0.0.236/trunk@120816 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 05:17:00 +00:00 |
|
ian%hixie.ch
|
48ec2543c1
|
User Preferences Screens
git-svn-id: svn://10.0.0.236/trunk@120815 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 04:55:59 +00:00 |
|
ian%hixie.ch
|
b54f6a7738
|
Fixing the spelling of getRightsForGroups() where it is declared and used. Also fixing one of the SQL statements to use rights.rightID not rights.ID.
git-svn-id: svn://10.0.0.236/trunk@120813 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 04:36:42 +00:00 |
|
ian%hixie.ch
|
e93997dd50
|
Rename 'setting' to 'settings' throughout to be consistent. Also, make it so that someone with the right to change all groups gets to be the equivalent of an owner even in groups where he is only marked as administrator.
git-svn-id: svn://10.0.0.236/trunk@120810 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 03:54:14 +00:00 |
|
ian%hixie.ch
|
a1a5159f19
|
Hardcoded constants strike again... Changing the setup code to let the first administrator have the rights to let other people be administrators.
git-svn-id: svn://10.0.0.236/trunk@120808 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-06 03:10:50 +00:00 |
|
ian%hixie.ch
|
e70690de47
|
comment clarification
git-svn-id: svn://10.0.0.236/trunk@120803 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-05 22:43:05 +00:00 |
|
ian%hixie.ch
|
1c05c87769
|
Change variable names to reflect the fact that objects are instances, not classes.
git-svn-id: svn://10.0.0.236/trunk@120771 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-04 01:11:56 +00:00 |
|
ian%hixie.ch
|
bd2477f239
|
Add some debugging info to every page once and for all.
git-svn-id: svn://10.0.0.236/trunk@120769 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-04 01:10:38 +00:00 |
|
ian%hixie.ch
|
6691baf86d
|
Make the user factory return the same object if the same user is requested multiple times. This means that if the currect user is changed on the fly, the changes actually take effect instead of there being a potential race condition between the change, the access of the currect user, and the objects going out of scope and updating the database.
git-svn-id: svn://10.0.0.236/trunk@120768 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-04 01:09:27 +00:00 |
|
ian%hixie.ch
|
a3c9a95658
|
Pass the app reference to the user factory. Fix the code that uses argument branches to treat them as arrays instead of scalars.
git-svn-id: svn://10.0.0.236/trunk@120766 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-04 01:06:38 +00:00 |
|
ian%hixie.ch
|
5a049e0b50
|
Two more things to do: make getSettings return a boolean instead of raising an exception, and add a pass-through command that outputs can use to bring up specific templates
git-svn-id: svn://10.0.0.236/trunk@120765 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-04 01:03:48 +00:00 |
|
ian%hixie.ch
|
c68716f30e
|
Add support for converting + signs in URIs back to spaces.
git-svn-id: svn://10.0.0.236/trunk@120764 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-05-04 01:02:19 +00:00 |
|
ian%hixie.ch
|
adc37e223f
|
change the default include type from XML to x-auto so that by default we can include other templates without knowing what they are.
git-svn-id: svn://10.0.0.236/trunk@120262 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-04-30 00:24:48 +00:00 |
|
ian%hixie.ch
|
d2fc17dd5a
|
Make getSettings return a boolean instead of raising an exception.
git-svn-id: svn://10.0.0.236/trunk@120261 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-04-30 00:24:01 +00:00 |
|
ian%hixie.ch
|
0f90df3b8e
|
Add various FILTERs were required to keep the output valid HTML...
git-svn-id: svn://10.0.0.236/trunk@120260 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-04-30 00:23:07 +00:00 |
|
ian%hixie.ch
|
759a7da243
|
Add support for pending commands, so that after getting their password sent users can continue doing what they were doing before. (This requires support on the output side as well, typically the HTTP protocol will use this, and less interactive protocols like e-mail won't.)
git-svn-id: svn://10.0.0.236/trunk@120259 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-04-30 00:18:33 +00:00 |
|
ian%hixie.ch
|
a8b1b7a2f7
|
Add getArgumentsAsString() and getArgumentsFromString() so that the arguments can be flattened and then 'retexturised' a later time and reused.
git-svn-id: svn://10.0.0.236/trunk@120258 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-04-30 00:13:20 +00:00 |
|
ian%hixie.ch
|
6e6f48680f
|
Login component output files for the HTTP protocol
git-svn-id: svn://10.0.0.236/trunk@120257 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-04-30 00:11:55 +00:00 |
|
ian%hixie.ch
|
39482f1bf4
|
If the app name is the same as the page name, only display it once in the page title
git-svn-id: svn://10.0.0.236/trunk@119739 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-04-24 20:31:53 +00:00 |
|
ian%hixie.ch
|
c840d6561b
|
Move from COSES to TemplateToolkit
git-svn-id: svn://10.0.0.236/trunk@119730 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-04-24 20:02:34 +00:00 |
|
ian%hixie.ch
|
f5ab46863f
|
Add an adminMessage to the default admin user.
git-svn-id: svn://10.0.0.236/trunk@119519 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-04-21 15:03:29 +00:00 |
|
ian%hixie.ch
|
5e2ee154d4
|
Add a (default, very simple) login command so that the standard footer can have a login link.
git-svn-id: svn://10.0.0.236/trunk@119518 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-04-21 14:58:13 +00:00 |
|
ian%hixie.ch
|
5a84742d94
|
Changing from COSES to TemplateToolkit
git-svn-id: svn://10.0.0.236/trunk@119517 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-04-21 14:53:34 +00:00 |
|
ian%hixie.ch
|
05037798ba
|
Split the confused getRights API into two, one to get the list of rights, and one to get the list of rights applicable to a set of groups. Make the user's output hash list all rights if the user is an administrator (this mirrors the behaviour of the user hasRight API).
git-svn-id: svn://10.0.0.236/trunk@119516 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-04-21 14:11:41 +00:00 |
|
ian%hixie.ch
|
e94bcacf88
|
add group names to the data passed to templates
git-svn-id: svn://10.0.0.236/trunk@119515 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-04-21 14:08:27 +00:00 |
|
ian%hixie.ch
|
614383c517
|
If a user bookmarks or reloads the logout page, we don't want to show an error.
git-svn-id: svn://10.0.0.236/trunk@119514 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-04-21 14:05:15 +00:00 |
|
ian%hixie.ch
|
2e245e7a52
|
change the constructor to be a service instance constructor only, so that if descendants are also services, we don't leak the world through having a circular reference to the app.
git-svn-id: svn://10.0.0.236/trunk@118404 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-04-06 21:34:39 +00:00 |
|
ian%hixie.ch
|
359d0fecd2
|
Update the CosesEditor to use the new name for the customised string data source. (used to be dataSource.strings, now dataSource.strings.customised)
git-svn-id: svn://10.0.0.236/trunk@118403 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-04-06 21:30:05 +00:00 |
|
ian%hixie.ch
|
8181a87f02
|
Correcting inherited method call to call the right method -- serviceInstanceInit(), not init()
git-svn-id: svn://10.0.0.236/trunk@118402 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-04-06 21:27:45 +00:00 |
|
ian%hixie.ch
|
79607d1db4
|
Fix the removeObjects() function to ensure it actually removes the objects instead of leaving null pointers about for us to dereference later. Added some extra precautions to make sure that doesn't happen again. This all makes it possible to log out again.
git-svn-id: svn://10.0.0.236/trunk@118401 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-04-06 20:37:31 +00:00 |
|
ian%hixie.ch
|
a5716542ce
|
Fixing warning: 'Use of uninitialized value in concatenation (.) or string at ../PLIF/PLIF/Service/TemplateToolkit.pm line 70.'
git-svn-id: svn://10.0.0.236/trunk@118400 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-04-06 20:19:12 +00:00 |
|
ian%hixie.ch
|
a05fb220e1
|
Use Template::Stash::Context rather than Template::Stash because we need things like .ref
git-svn-id: svn://10.0.0.236/trunk@118399 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-04-06 20:13:44 +00:00 |
|
ian%hixie.ch
|
120f95a991
|
Updating built in COSES strings to match the new semantics (no 'data.' prefix required on variables)
git-svn-id: svn://10.0.0.236/trunk@118397 18797224-902f-48f8-a5cc-f745e15eee43
|
2002-04-06 19:29:13 +00:00 |
|