Andrew McMillan
5debe92237
Move from extract.pl to standard xgettext
...
So far we have used extract.pl which originated in Horde to generate the
PO files. This process took a long time to run.
But xgettext is able to handle PHP by itself.
In the source translate() and i18n() are used instead of _() therefore
we have to pass a keyword parameter.
From now on Translators: is the keyword to provide content to the
translators on Transifex.
Conflicts:
scripts/po/extract.pl
2011-02-21 22:39:40 +13:00
Felix Möller
a9231717c9
Removing the last traces of RSCDS and renaming it to DAViCal.
2011-02-21 22:31:46 +13:00
Felix Möller
9bfb7116eb
Correct a small typo.
...
Correcting the typo in the source not in the docs as they are auto generated.
2011-02-21 22:31:03 +13:00
Andrew McMillan
d15a190134
Correct error message for unsupported report request.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-02-20 10:16:58 +13:00
Andrew McMillan
586a506d9b
Ensure resources are always returned with CRLF rather than just LF.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-21 13:42:50 +13:00
Andrew McMillan
f59e109ace
Correct references to rscds & other old URLs.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-20 23:33:50 +13:00
Andrew McMillan
99fde69b39
Skip alarms with bogus trigger data.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-18 00:36:46 +13:00
Andrew McMillan
fcd2ffc5b3
Fix function rename so we can create tickets.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-15 16:43:15 +13:00
Andrew McMillan
c7ae6826d8
Validate alarm date-time or duration before adding it to the DB.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-12 10:03:36 +13:00
Andrew McMillan
02182cf087
Remove duplicate constructor thinko.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-11 10:10:59 +13:00
Andrew McMillan
4278ace1f7
Display RECURRENCE-ID as appropriate.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-08 13:33:52 +13:00
Andrew McMillan
bb1e22c9b5
We need access to $c here...
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-07 00:09:06 +13:00
Andrew McMillan
7e0443e866
Add a special option to allow keeping the RRULE, RDATE and EXDATE
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-05 16:01:49 +13:00
Andrew McMillan
e28f200c5f
Only add a recurrence-id if this is actually a repeating instance.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-05 11:55:35 +13:00
Andrew McMillan
ca6668c608
Always add a recurrence-id so a client can tell this repeats.
...
If the recurrence-id is missing the client can't provide an indication
that this is a repeating event.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-05 09:10:47 +13:00
Andrew McMillan
5c728365e3
Nail final issue with resourcetypes since refactoring.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-05 00:04:20 +13:00
Andrew McMillan
c3ae4d6fe3
Remove unnecessary debugging message.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-04 23:23:47 +13:00
Andrew McMillan
f4c73afb03
Finally give up on the SQL rrule pre-processing.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-04 23:23:33 +13:00
Andrew McMillan
775ccceb58
Move debug logged password behind specific 'password' debug setting.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-04 23:22:49 +13:00
Andrew McMillan
9e32df7ee1
More RRule polishing.
...
This includes a much improved function for converting two times to a
RFC5545 duration, and a clarification of the UTC() and FloatOrUTC()
methods. Plus a couple of small bugfixes.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-04 22:51:57 +13:00
Andrew McMillan
595e724426
Fix bug in handling bound resources with DAVResource changes.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-04 18:46:51 +13:00
Andrew McMillan
51576df490
Obfuscate event data when reader only has read-free-busy permission.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-04 17:08:22 +13:00
Andrew McMillan
e70bcd80d1
Fix caching problems.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-04 17:00:03 +13:00
Andrew McMillan
52e9ad0018
Fix function declarations. Add comment.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-04 16:59:24 +13:00
Andrew McMillan
fafa2662b2
Move supported privileges into a private static function, rather
...
than assign the array in every instance of CalDAVRequest.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-04 16:59:03 +13:00
Andrew McMillan
7d135d39fa
Correct handling of floating events & BYYEARDAY.
...
Also some minor refactoring. Regression tests for all NZ holidays
from 2005 to 2011 (only the calculatable ones for 2005-2008).
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-04 16:46:57 +13:00
Andrew McMillan
20ee255898
Refactor fetching of Principal records from database.
...
This is a significant refactoring, replacing the old getUserBy*()
functions with a new Principal class, and replacing the old
CalDAVPrincipal class with a new DAVPrincipal class which extends
the Principal class.
At this point all regression tests pass (again) but there could
well be issues for people who use alternative authenticators
such as LDAP, although I have endeavoured to resolve those
potential issues.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-03 10:16:43 +13:00
Andrew McMillan
f305cdf4cb
A few more places we need to ensure the collection is uncached.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-01 21:55:55 +13:00
Andrew McMillan
4178ab4254
Add caching of collection reads
...
Also a special header is added for telling DAViCal to flush the
cache during regression testing etc.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-01 21:25:46 +13:00
Andrew McMillan
5ff2f052c6
Add support for caching of feed, and uncaching on collection change.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-31 20:29:30 +13:00
Andrew McMillan
9f8d4b4346
Actually use new calculated per principal auth_realm.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-30 18:59:19 +13:00
Andrew McMillan
5c0dd64d68
Let auth realm be 'per Principal' to work around Mozilla #247486
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-30 12:41:49 +13:00
Andrew McMillan
874b81c1c9
IMAP PAM authentication from Oliver Schulze
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-30 12:29:51 +13:00
Andrew McMillan
08e5f97c56
Remove unnecessary call to DoQuery()
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-28 02:06:02 +13:00
Andrew McMillan
0041a1e331
Since we haven't read the record yet, we can't refer to it's fields.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-28 00:41:33 +13:00
Andrew McMillan
d615da9c55
Adjust comment wording for clarity.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-28 00:41:11 +13:00
Andrew McMillan
ef2b2aea02
Improve docs on DAVResource::NeedPrivilege() method.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-27 18:24:51 +13:00
Andrew McMillan
34a27d126d
Refactor PUT functions to set modified/created dates more correctly.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-27 18:23:13 +13:00
Andrew McMillan
4876542537
Fix whitespace.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-27 12:46:00 +13:00
Andrew McMillan
815ca239bb
Add an AddCategory() method to AtomEntry.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-27 12:45:44 +13:00
Leho Kraav
0ac934268f
since we're implementing Atom, refactoring all rss -> feed seems appropriate.
...
this seems better than going for only atom.php, since we can add more
feed formats in the future under the same infrastructure i.e.
feed.php/user1/home/?format=json.
2010-12-27 12:35:12 +13:00
Andrew McMillan
5a014c35f0
Fix references to $c global.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-27 10:50:36 +13:00
Andrew McMillan
f2486296a7
A new AtomFeed class for building an Atom feed.
...
Plus the change in rss.php to use it.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-26 23:31:47 +13:00
Andrew McMillan
e5f5f8fc3b
New url() and GetProperty() methods matching DAVResource.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-26 17:44:16 +13:00
Andrew McMillan
6328126c04
GetProperty() now returns a clone() if it is an object. New url() method.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-26 17:43:57 +13:00
Andrew McMillan
b15fcb3f77
Refactoring of RRule-v2, which incidentally fixes a bug!
...
VALUE=DATE:YYYYMMDD dates should now work better, and all date
parsing is much more robust.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-26 17:41:52 +13:00
Andrew McMillan
c189b36c28
Fix references to internal static variable.
2010-12-26 01:52:44 +13:00
Andrew McMillan
86216cd291
Refactored RRule to add support for initialisation from a vProperty.
2010-12-26 01:38:17 +13:00
Andrew McMillan
902bf2ad42
Prepare to release 0.9.9.4
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-25 16:15:58 +13:00
Andrew McMillan
5e4f574818
One final nail in PgQuery's coffin.
...
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-25 16:15:36 +13:00