59 Commits

Author SHA1 Message Date
Andrew Ruthven
bacf08fea6 Wrap doc lines at 76 characters. 2024-02-17 02:25:25 +00:00
Florian Schlichting
4b7abbbd83 drop default $position argument from BuildXMLTree everywhere (awl!22) 2023-02-26 22:10:34 +01:00
Andrew Ruthven
e3b5c331be Add a primary key to calendar_alarm table.
Also fixed a bug in scripts/refresh-alarms.php if there was an
alarm with a duplicate trigger.

This is part of the fix for #276.
2023-02-15 07:42:34 +00:00
Florian Schlichting
69d5c58a5b switch egrep to grep -E to avoid test failure
this is https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1019335, which
should be fixed but apparently isn't in the image we're using...
2022-10-04 09:41:09 +02:00
linda.fliss
45035ad488 improved refresh-alarms.php script 2022-02-12 13:47:37 +00:00
Andrew Ruthven
dcd240785d Fix the case of a variable 2022-02-13 02:17:28 +13:00
Andrew Ruthven
99d9264320 Ignore zones.h and zones.tab 2021-01-24 23:47:11 +13:00
Andrew Ruthven
3817f2f61a Make the runs deterministic 2021-01-24 23:43:43 +13:00
Cyril Giraud
4a4f578c49 PHP strings extraction with rebulid-translations.sh + tx push -s -t 2017-01-14 23:40:36 +01:00
Florian Schlichting
2c11535eb0 use secure URIs where possible 2017-01-08 15:48:52 +01:00
Florian Schlichting
eaef540766 replace RRule with RRule-v2 2016-12-30 08:54:14 +01:00
Florian Schlichting
93ea4e47f6 separate rebuild-translations and building locale/
'make' (or 'make all', if one is interested in the apidoc) should now
do everything needed to run from a git checkout. At the same time,
it no longer rebuilds all translations (xgettext run etc.). This
can be done with 'make translations'.
2016-12-01 21:02:53 +01:00
Florian Schlichting
41f6267353 davical-cli: add link to wiki page 2016-07-15 00:17:56 +02:00
Andrew McMillan
50d0de4992 Disabling slow query threshold nag for batch job. 2016-06-22 23:01:46 +01:00
Egoitz Aurrekoetxea
607afb824c Add scripts/davical-cli, an example of a command-line interface for administrative tasks in a large-scale multi-domain setup 2016-06-13 22:12:20 +02:00
Florian Schlichting
d7b063a249 fix default value for old events, and actually bail out if "old" is less than six days ago (fixes #49) 2015-10-02 22:44:51 +02:00
Florian Schlichting
3a9d8db575 rebuild-translations.sh: do not create incorrect SQL in supported_locales.sql when $lang.values file is missing (fixing Issue #40 part a) 2015-10-01 21:43:35 +02:00
Florian Schlichting
269a24dbb5 fix scripts/build-always.sh: AWL_VERSION is always without quotes 2014-12-16 21:53:28 +01:00
Aaron W. Swenson
cfd5fd7555 Loop Over AWL Directory Candidates
Using this method we're able to loop over the candidate directories
until we find what should be suitable AWL location. Further, adding
additional locations is as simple as adding a new line to ${awldirs}.

It does have the limitation that if the path has a new line in it
(/some/ridic
ulous/path), it'll treat it as two different paths. However, if
somebody seriously has that, they deserve the pain.
2014-11-14 13:44:39 -05:00
Andrew Ruthven
325840ab30 Heh, actually make it the same string. Damn quotes. 2014-09-24 15:21:52 +12:00
Andrew Ruthven
1a715ca47a Closes #25 - Remove a duplicate string.
We still need the newline on the end, so append to the result from
the translate call.

I do note that is the only translated string in the file...
2014-09-24 15:19:23 +12:00
Andrew McMillan
eadc73c6be Don't warn on slow queries since this is a batch process. 2013-04-17 12:25:16 +12:00
Andrew McMillan
5065e59596 Also need to change collection_id... 2013-04-16 10:20:03 +12:00
Andrew McMillan
f67780c461 Fix typo. 2013-04-16 09:57:38 +12:00
Andrew McMillan
8a5d641297 Once we do archive the events we have to update various things so they realise it too. 2013-04-15 14:49:33 +12:00
Andrew McMillan
0453c9a902 A script for archiving non-repeating events into an archive calendar. 2013-04-11 07:33:14 +12:00
Andrew McMillan
2f59a1a172 Handle relative file references better, 2012-05-28 08:07:07 +12:00
Andrew McMillan
c675349ded Add a command-line script to export a single calendar to stdout. 2012-02-24 11:18:51 +13:00
Andrew McMillan
2cb4528746 Override the "don't PUT a whole calendar" option. 2012-02-21 22:35:41 +13:00
Andrew McMillan
85924de63c A command-line script to load a calendar from an iCalendar file.
Currently only tested for calendars, but I suspect it will also
work just fine for an addressbook also.
2012-02-21 20:54:53 +13:00
Andrew McMillan
df4d1f0426 Correctly calculate the next alarm time. 2011-11-21 10:53:46 +13:00
Andrew McMillan
3001207904 Update refresh-alarms script to newer style initialisation.
This approach makes for a tidier and more reliable initialisation.
2011-11-01 18:00:02 +13:00
Andrew McMillan
45c5e67993 Get date identified as being UTC. 2011-10-06 11:06:34 +02:00
Andrew McMillan
8347143879 Refactor this to move duplicated code into functions. 2011-09-23 13:03:07 +12:00
Andrew McMillan
b6f2f9c7da Move the zone update code out of an online process. 2011-09-22 15:34:52 +12:00
Andrew McMillan
3ce63406c8 A script that can be run from cron to sync from LDAP.
As proposed by 'mate' on IRC.  This simple code hopefully also
demonstrates a good general starting point to future PHP scripts
running from the command-line within DAViCal.
2011-09-22 15:34:33 +12:00
Andrew McMillan
8cefe9d5c4 Adjust how we find AWL when building relative strings. 2011-09-11 20:28:12 +12:00
Andrew McMillan
8ed17e2329 Calculate the DAViCal source files we need to process for translations. 2011-09-11 00:46:07 +12:00
Andrew McMillan
504651a3f5 Add new locales and restructure how they are handled.
We now build the dba/supported_locales.sql file from po/locale.values
files for each locale, and we are also fetching the translations from
transifex.net in order to build them.

This commit also adds support for some new locales, especially
Brazilian Portuguese and Mexican Spanish.
2011-08-25 12:45:33 +12:00
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
Andrew McMillan
0de150ed74 Build AWL desired version string as quoted value.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-02-21 22:07:31 +13:00
Andrew McMillan
6f50f3e2e2 Some changes to allow for snapshot builds.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-20 23:34:21 +13:00
Andrew McMillan
4cf0d0696b Script to refresh calendar_alarms with next instance time. 2010-11-14 14:55:49 +13:00
Andrew McMillan
b8f4a26515 Patch for caldav sync from Pierre-Arnaud Poudret. 2010-11-06 22:38:24 +13:00
Andrew McMillan
c0d950b687 Add some replacement to set the expected AWL version.
This is kinda dodgy because AWL is external, so we expect it to
be unpacked in a parallel 'awl' directory.  Otherwise we will not
change what is already coded into htdocs/always.php
2010-10-14 21:18:00 -04:00
Andrew McMillan
c5c97ad5d2 [sync-remote] More attempts to handle Google.
It seems that on PUT Google might truncate the filename, so it will
send us back a Location header we need to follow before we can
getr the ETag.  And there might be one more hoop to jump through
to complete this process.

This would be better handled if we locally use the VEVENT UID as
the invariant property between local and remote, rather than the
'filename' part of the path, but we'd still face the issue of
having to follow the Location: header to get the ETag for the
event we just PUT to the remote server.
2010-09-17 14:08:40 +12:00
Andrew McMillan
be02f3cd1f [sync-remote-caldav] Handle case where remote server renames on PUT
Some servers rename the event when we PUT it, so in this case we
rename our local copy to match.
2010-09-14 14:00:00 +12:00
Andrew McMillan
a1a0eb2aa2 Print stage of processing for diagnostic reasons. 2010-08-18 21:38:34 +12:00
Andrew McMillan
1862d5fa42 Improved sync to cope slightly better if remote data already present.
This is not a complete fix - it depends on the filename part of the
URI being invariant between the two servers.  It should really
compare the UID of the two events...
2010-04-26 23:28:03 +12:00
Andrew McMillan
92e106653b Fix include path for new always.php location. 2010-03-24 12:55:08 +13:00