platal.git
14 years agoAdd possibility to declare wiki hooks.
Florent Bruneau [Sat, 20 Mar 2010 13:51:12 +0000 (14:51 +0100)]
Add possibility to declare wiki hooks.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
14 years agoFixes detection of a "single" callback given to PlParallelIterator
Raphaël Barrois [Tue, 16 Mar 2010 11:13:35 +0000 (12:13 +0100)]
Fixes detection of a "single" callback given to PlParallelIterator

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
14 years agoAdd ut for PlParallelIterator
Raphaël Barrois [Tue, 16 Mar 2010 11:04:55 +0000 (12:04 +0100)]
Add ut for PlParallelIterator

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
14 years agoFixes PlSubIterator according to unit tests...
Raphaël Barrois [Tue, 16 Mar 2010 01:53:24 +0000 (02:53 +0100)]
Fixes PlSubIterator according to unit tests...

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
14 years agoAdd unit tests for callbacks and PlSubIterator
Raphaël Barrois [Tue, 16 Mar 2010 00:18:56 +0000 (01:18 +0100)]
Add unit tests for callbacks and PlSubIterator

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
14 years agoAdd PlParallelIterator
Raphaël Barrois [Mon, 15 Mar 2010 12:22:23 +0000 (13:22 +0100)]
Add PlParallelIterator

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
14 years agoFixes PlSubIterator
Raphaël Barrois [Mon, 15 Mar 2010 12:21:37 +0000 (13:21 +0100)]
Fixes PlSubIterator

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
14 years agoFull coverage of PlDict by unit tests.
Florent Bruneau [Sun, 14 Mar 2010 09:46:29 +0000 (10:46 +0100)]
Full coverage of PlDict by unit tests.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
14 years agoUse assertSame instead of assertEquals because we need to be sure the type
Florent Bruneau [Sun, 14 Mar 2010 09:09:59 +0000 (10:09 +0100)]
Use assertSame instead of assertEquals because we need to be sure the type
has not been altered.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
14 years agoPlHeap::iterator returns a flat array iterator.
Florent Bruneau [Sat, 13 Mar 2010 21:50:39 +0000 (22:50 +0100)]
PlHeap::iterator returns a flat array iterator.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
14 years agoAdd tests to cover PlHeap and PlMergeIterator.
Florent Bruneau [Sat, 13 Mar 2010 21:50:15 +0000 (22:50 +0100)]
Add tests to cover PlHeap and PlMergeIterator.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
14 years agoSimplify (and fix) PlFilterIterator.
Florent Bruneau [Sat, 13 Mar 2010 21:28:38 +0000 (22:28 +0100)]
Simplify (and fix) PlFilterIterator.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
14 years agoMore unit tests.
Florent Bruneau [Sat, 13 Mar 2010 21:27:20 +0000 (22:27 +0100)]
More unit tests.

New tests fully cover:
 * array iterator
 * filter/map iterator

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
14 years agoCleaner: don't hide syntax errors.
Florent Bruneau [Thu, 11 Mar 2010 10:10:41 +0000 (11:10 +0100)]
Cleaner: don't hide syntax errors.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
14 years agoImproves unit testing.
Florent Bruneau [Thu, 11 Mar 2010 10:04:33 +0000 (11:04 +0100)]
Improves unit testing.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
14 years agoAdd make test.
Florent Bruneau [Tue, 9 Mar 2010 21:44:57 +0000 (22:44 +0100)]
Add make test.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
14 years agoBasic tests of array iterator (need more tests).
Florent Bruneau [Tue, 9 Mar 2010 21:21:28 +0000 (22:21 +0100)]
Basic tests of array iterator (need more tests).

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
14 years agoAdd XDB escaping unit tests.
Florent Bruneau [Tue, 9 Mar 2010 21:09:39 +0000 (22:09 +0100)]
Add XDB escaping unit tests.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
14 years agoAdd basic include for unit tests.
Florent Bruneau [Tue, 9 Mar 2010 21:09:14 +0000 (22:09 +0100)]
Add basic include for unit tests.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
14 years agoFix problem in PlIteratorUtils
Raphaël Barrois [Mon, 8 Mar 2010 15:22:48 +0000 (16:22 +0100)]
Fix problem in PlIteratorUtils

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
14 years agoAdd PlIteratorUtils::getObjectProperty callback
Raphaël Barrois [Mon, 8 Mar 2010 01:00:38 +0000 (02:00 +0100)]
Add PlIteratorUtils::getObjectProperty callback

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
14 years agoBugfix in PlIteratorUtils::getArrayValueCallback
Raphaël Barrois [Mon, 8 Mar 2010 00:57:50 +0000 (01:57 +0100)]
Bugfix in PlIteratorUtils::getArrayValueCallback

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
14 years agoMakes compilation error debugging easier.
Florent Bruneau [Sat, 6 Mar 2010 21:36:19 +0000 (22:36 +0100)]
Makes compilation error debugging easier.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
14 years agoDumb implementation of missing PlSubIterator::first().
Florent Bruneau [Sat, 6 Mar 2010 21:15:50 +0000 (22:15 +0100)]
Dumb implementation of missing PlSubIterator::first().

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
14 years agoXDB::escaped use XDB::formatArray format to format array arguments.
Florent Bruneau [Sat, 6 Mar 2010 18:20:41 +0000 (19:20 +0100)]
XDB::escaped use XDB::formatArray format to format array arguments.

What does this mean?
 XDB::format('blah in {?}', $array);
is now the same as previous notation:
 'blah in ' . XDB::formatArray($array);

WARNING: this might breaks some pieces of code where previous
serialisation of arrays was used.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
14 years agoAPI changes on PlSqlJoin in order to simplify its usage.
Florent Bruneau [Fri, 5 Mar 2010 22:02:16 +0000 (23:02 +0100)]
API changes on PlSqlJoin in order to simplify its usage.

New PlSqlJoin are built using factory functions (PlSqlJoin::left,
PlSqlJoin::right, PlSqlJoin::inner). The factories takes 2 arguments:
 * a table name
 * a XDB query format and its parameters

Example:
$join = PlSqlJoin::left('table', 'blah = {?} AND truc = {?}',
                        $param1, $param2);

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
14 years agoFix problem with bounds in MultipageView
Raphaël Barrois [Tue, 2 Mar 2010 22:37:05 +0000 (23:37 +0100)]
Fix problem with bounds in MultipageView

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
14 years agoNo need to fetch bounds if they are not required.
Stéphane Jacob [Tue, 2 Mar 2010 20:20:11 +0000 (21:20 +0100)]
No need to fetch bounds if they are not required.

Signed-off-by: Stéphane Jacob <sj@m4x.org>
14 years agoRenames user_id to uid accordingly to our naming convention.
Stéphane Jacob [Tue, 2 Mar 2010 17:58:56 +0000 (18:58 +0100)]
Renames user_id to uid accordingly to our naming convention.

Signed-off-by: Stéphane Jacob <sj@m4x.org>
14 years agoFixes bounds display on multipage view.
Stéphane Jacob [Mon, 1 Mar 2010 15:03:52 +0000 (16:03 +0100)]
Fixes bounds display on multipage view.

Signed-off-by: Stéphane Jacob <sj@m4x.org>
14 years agoTypo file->line
Bernardo Freitas Paulo da Costa [Sun, 28 Feb 2010 18:18:38 +0000 (19:18 +0100)]
Typo file->line

Signed-off-by: Bernardo Freitas Paulo da Costa <bernardo.da-costa@m4x.org>
14 years agoFixes the function that returns int in PlDict, adds count and merge to PlDict.
Stéphane Jacob [Sun, 28 Feb 2010 13:17:44 +0000 (14:17 +0100)]
Fixes the function that returns int in PlDict, adds count and merge to PlDict.

Signed-off-by: Stéphane Jacob <sj@m4x.org>
14 years agoDon't produce html when running in CLI.
Florent Bruneau [Sun, 28 Feb 2010 12:55:01 +0000 (13:55 +0100)]
Don't produce html when running in CLI.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
14 years agoMoves make_firstname_case to PlUser.
Stéphane Jacob [Mon, 22 Feb 2010 16:41:03 +0000 (17:41 +0100)]
Moves make_firstname_case to PlUser.

Signed-off-by: Stéphane Jacob <sj@m4x.org>
14 years agoAdd Platal::assert() function
Raphaël Barrois [Mon, 22 Feb 2010 20:47:42 +0000 (21:47 +0100)]
Add Platal::assert() function

Used to put assertion in the code.
If an assertion fails, a message is written to spool/tmp/assert_errors,
   and another one is shown to the user

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
14 years agoOoops.
Stéphane Jacob [Mon, 22 Feb 2010 14:03:54 +0000 (15:03 +0100)]
Ooops.

Signed-off-by: Stéphane Jacob <sj@m4x.org>
14 years agoMoves make_username to PlUser.
Stéphane Jacob [Mon, 22 Feb 2010 10:44:18 +0000 (11:44 +0100)]
Moves make_username to PlUser.

Signed-off-by: Stéphane Jacob <sj@m4x.org>
14 years agoSet error return code when PlPage::kill() is called from CLI.
Florent Bruneau [Mon, 22 Feb 2010 10:45:29 +0000 (11:45 +0100)]
Set error return code when PlPage::kill() is called from CLI.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
14 years agoIn 'cli', print SQL errors.
Florent Bruneau [Sun, 21 Feb 2010 13:11:52 +0000 (14:11 +0100)]
In 'cli', print SQL errors.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
14 years agoAdd new PlSubIterator
Raphaël Barrois [Fri, 19 Feb 2010 14:17:46 +0000 (15:17 +0100)]
Add new PlSubIterator

Creates a new "subiterator" when the result of a given callback changes

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
14 years agoMoves makeForlife to PlUser.
Stéphane Jacob [Thu, 18 Feb 2010 17:51:32 +0000 (18:51 +0100)]
Moves makeForlife to PlUser.

Signed-off-by: Stéphane Jacob <sj@m4x.org>
14 years agoAdd map and filter functions on iterator.
Florent Bruneau [Tue, 16 Feb 2010 21:11:58 +0000 (22:11 +0100)]
Add map and filter functions on iterator.

PlIterator PlIteratorUtils::map(PlIterator $src, $callback);
PlIterator PlIteratorUtils::filter(PlIterator $src, $callback)

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
14 years agoFix formatCustomOrder.
Florent Bruneau [Tue, 16 Feb 2010 20:43:37 +0000 (21:43 +0100)]
Fix formatCustomOrder.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
14 years agoAdd XDB::formatCustomOrder (to create a custom order in an SQL query)
Raphaël Barrois [Tue, 16 Feb 2010 10:33:00 +0000 (11:33 +0100)]
Add XDB::formatCustomOrder (to create a custom order in an SQL query)

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
14 years ago2010.
Florent Bruneau [Sun, 14 Feb 2010 19:49:45 +0000 (20:49 +0100)]
2010.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
14 years agoAdd PlImage, short wrapper to send images.
Florent Bruneau [Sun, 14 Feb 2010 16:31:45 +0000 (17:31 +0100)]
Add PlImage, short wrapper to send images.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
14 years agoMakes the $limit argument optional.
Florent Bruneau [Sun, 14 Feb 2010 10:33:01 +0000 (11:33 +0100)]
Makes the $limit argument optional.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
14 years agoMake PlSet data protected
Raphaël Barrois [Fri, 12 Feb 2010 23:11:52 +0000 (00:11 +0100)]
Make PlSet data protected

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
14 years agoAdd XDB::formatWildcard
Raphaël Barrois [Wed, 10 Feb 2010 08:41:11 +0000 (09:41 +0100)]
Add XDB::formatWildcard

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
14 years agoFixes PlSet (orders weren't working)
Raphaël Barrois [Fri, 5 Feb 2010 15:36:06 +0000 (16:36 +0100)]
Fixes PlSet (orders weren't working)

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
14 years agoUse a working "ordering" system in PlSets...
Raphaël Barrois [Thu, 4 Feb 2010 22:45:54 +0000 (23:45 +0100)]
Use a working "ordering" system in PlSets...

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
14 years agoAdd folding, PFO_Random
Raphaël Barrois [Thu, 4 Feb 2010 22:45:27 +0000 (23:45 +0100)]
Add folding, PFO_Random

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
14 years agoMinor bugfixes
Raphaël Barrois [Thu, 4 Feb 2010 20:38:43 +0000 (21:38 +0100)]
Minor bugfixes

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
14 years agoBugFixes in PlSet and PlFilter
Raphaël Barrois [Thu, 21 Jan 2010 00:54:47 +0000 (01:54 +0100)]
BugFixes in PlSet and PlFilter

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
14 years agoMerge all plfilter-related files, and make it an include
Raphaël Barrois [Wed, 20 Jan 2010 22:58:55 +0000 (23:58 +0100)]
Merge all plfilter-related files, and make it an include

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
14 years agoMake PlSet PHP-compatible...
Raphaël Barrois [Wed, 20 Jan 2010 22:54:24 +0000 (23:54 +0100)]
Make PlSet PHP-compatible...

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
14 years agoImrpove API for PlSet, create abstract PlFilter
Raphaël Barrois [Wed, 20 Jan 2010 16:15:23 +0000 (17:15 +0100)]
Imrpove API for PlSet, create abstract PlFilter

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
14 years agoAdd PlFilter, PFC, PFO
Raphaël Barrois [Tue, 19 Jan 2010 21:39:08 +0000 (22:39 +0100)]
Add PlFilter, PFC, PFO

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
14 years agoMerge commit 'origin/core-1.0.2' into core
Vincent Zanotti [Sun, 15 Nov 2009 23:05:38 +0000 (00:05 +0100)]
Merge commit 'origin/core-1.0.2' into core

14 years agoAllows addJsLink to be used for non-static Javascript. core/1.0.2/maint core/1.0.2
Vincent Zanotti [Sat, 14 Nov 2009 23:53:18 +0000 (00:53 +0100)]
Allows addJsLink to be used for non-static Javascript.

Signed-off-by: Vincent Zanotti <vincent.zanotti@m4x.org>
14 years agoUpdate ChangeLog
Vincent Zanotti [Fri, 13 Nov 2009 10:42:47 +0000 (11:42 +0100)]
Update ChangeLog

Signed-off-by: Vincent Zanotti <vincent.zanotti@m4x.org>
14 years agoUpdate ChangeLog
Vincent Zanotti [Fri, 13 Nov 2009 10:38:55 +0000 (11:38 +0100)]
Update ChangeLog

Signed-off-by: Vincent Zanotti <vincent.zanotti@m4x.org>
14 years agoAdds support for database table prefixes.
Vincent Zanotti [Mon, 9 Nov 2009 01:49:49 +0000 (02:49 +0100)]
Adds support for database table prefixes.

Signed-off-by: Vincent Zanotti <vincent.zanotti@m4x.org>
14 years agoServes javascript file from a per-version directory, to prevent cross-version caching...
Vincent Zanotti [Sun, 8 Nov 2009 21:20:58 +0000 (22:20 +0100)]
Serves javascript file from a per-version directory, to prevent cross-version caching issues.
Also normalizes the javascript inclusion, moving the common ones to PlPage implementations (prepares the upcoming javascript minimization).

Signed-off-by: Vincent Zanotti <vincent.zanotti@m4x.org>
14 years agoUpdate ChangeLog
Vincent Zanotti [Sun, 8 Nov 2009 19:18:49 +0000 (20:18 +0100)]
Update ChangeLog

Signed-off-by: Vincent Zanotti <vincent.zanotti@m4x.org>
14 years agoFactorizes the content type / content cache headers, and improves caching of static...
Vincent Zanotti [Sun, 8 Nov 2009 03:37:09 +0000 (04:37 +0100)]
Factorizes the content type / content cache headers, and improves caching of static resources.

Signed-off-by: Vincent Zanotti <vincent.zanotti@m4x.org>
14 years agoTypo.
Stéphane Jacob [Mon, 21 Sep 2009 15:07:07 +0000 (17:07 +0200)]
Typo.

14 years agoA foreign email address has to be valid to be added to a ML.
Stéphane Jacob [Mon, 14 Sep 2009 21:10:45 +0000 (23:10 +0200)]
A foreign email address has to be valid to be added to a ML.

14 years ago[@attribute] has been replaced by [attribute] in jQuery.
Stéphane Jacob [Thu, 30 Jul 2009 22:21:40 +0000 (00:21 +0200)]
[@attribute] has been replaced by [attribute] in jQuery.

14 years agoUpdate ChangeLog
Vincent Zanotti [Thu, 30 Jul 2009 15:13:21 +0000 (17:13 +0200)]
Update ChangeLog

Signed-off-by: Vincent Zanotti <vincent.zanotti@m4x.org>
14 years agoUpdates the ChangeLog for the next release.
Vincent Zanotti [Thu, 30 Jul 2009 15:09:22 +0000 (17:09 +0200)]
Updates the ChangeLog for the next release.

Signed-off-by: Vincent Zanotti <vincent.zanotti@m4x.org>
14 years agoPrevents a file_get_contents warning when retrieving sql errors.
Stéphane Jacob [Mon, 27 Jul 2009 21:10:18 +0000 (23:10 +0200)]
Prevents a file_get_contents warning when retrieving sql errors.

14 years agoFix bug in PlUser::getSilentWithUID
Raphaël Barrois [Tue, 21 Jul 2009 15:17:28 +0000 (17:17 +0200)]
Fix bug in PlUser::getSilentWithUID

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
14 years agoFinish migration of "promo" field to X.org User class
Raphaël Barrois [Tue, 21 Jul 2009 15:16:45 +0000 (17:16 +0200)]
Finish migration of "promo" field to X.org User class

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
14 years agoTypo.
Stéphane Jacob [Thu, 16 Jul 2009 21:19:41 +0000 (23:19 +0200)]
Typo.

14 years agoAdds Xelnor to the authors.
Stéphane Jacob [Tue, 7 Jul 2009 15:15:40 +0000 (17:15 +0200)]
Adds Xelnor to the authors.

15 years agoRemove X.org-specific "promo" field from PlUser
Raphaël Barrois [Tue, 30 Jun 2009 10:26:15 +0000 (12:26 +0200)]
Remove X.org-specific "promo" field from PlUser

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
15 years agoOooops: typo.
Stéphane Jacob [Mon, 29 Jun 2009 05:46:51 +0000 (07:46 +0200)]
Oooops: typo.

15 years agoFixes display of sql errors.
Stéphane Jacob [Sun, 28 Jun 2009 23:11:05 +0000 (01:11 +0200)]
Fixes display of sql errors.

15 years agoModifies plwizzard for showing a confirmation message when the profile is modified.
Stéphane Jacob [Sat, 27 Jun 2009 15:22:15 +0000 (17:22 +0200)]
Modifies plwizzard for showing a confirmation message when the profile is modified.

15 years agoMerge commit 'origin/core-1.0.0' into core
Vincent Zanotti [Wed, 17 Jun 2009 21:01:44 +0000 (23:01 +0200)]
Merge commit 'origin/core-1.0.0' into core

15 years agoFixes the display of our favicon. core/1.0.0/maint
Vincent Zanotti [Wed, 17 Jun 2009 20:57:35 +0000 (22:57 +0200)]
Fixes the display of our favicon.

Signed-off-by: Vincent Zanotti <vincent.zanotti@m4x.org>
15 years agoRemoves an unused statement.
Vincent Zanotti [Wed, 17 Jun 2009 00:13:03 +0000 (02:13 +0200)]
Removes an unused statement.

Signed-off-by: Vincent Zanotti <vincent.zanotti@m4x.org>
15 years agoRemoves the deprecated S::has_perms method (not used anymore in master).
Vincent Zanotti [Mon, 15 Jun 2009 18:41:10 +0000 (20:41 +0200)]
Removes the deprecated S::has_perms method (not used anymore in master).

Signed-off-by: Vincent Zanotti <vincent.zanotti@m4x.org>
15 years agoUpdates the "catch-all mode" to allow the owner to specify the catch-all address.
Vincent Zanotti [Wed, 27 May 2009 14:31:31 +0000 (16:31 +0200)]
Updates the "catch-all mode" to allow the owner to specify the catch-all address.
Also prevents this mode from being used in a production environment.

Signed-off-by: Vincent Zanotti <vincent.zanotti@m4x.org>
15 years agoAdds support for "catchmail" config value
Raphaël Barrois [Wed, 27 May 2009 13:57:58 +0000 (15:57 +0200)]
Adds support for "catchmail" config value

Set in [Core] section, forces all mails to be sent to admin_email instead of
the recipients defined by addTo, addCc, addBcc.
Useful for development purposes.

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
15 years agoMerge commit 'origin/core-1.0.0' into core
Vincent Zanotti [Sat, 23 May 2009 21:07:18 +0000 (23:07 +0200)]
Merge commit 'origin/core-1.0.0' into core

15 years agoAdds a "SECURITY" file which will list our security bugfixes.
Vincent Zanotti [Sat, 23 May 2009 21:03:30 +0000 (23:03 +0200)]
Adds a "SECURITY" file which will list our security bugfixes.

Signed-off-by: Vincent Zanotti <vincent.zanotti@m4x.org>
15 years agoPasses down the list of input-to-output relations to the field callback.
Vincent Zanotti [Mon, 20 Apr 2009 21:20:03 +0000 (23:20 +0200)]
Passes down the list of input-to-output relations to the field callback.
It allows this callback to actually use the input in a proper way (the first
parameter of the cb is the user input, which is improperly keyed).

Also make the getValue method public and static to simplify the computation
of output keys by the callbacks.

Signed-off-by: Vincent Zanotti <vincent.zanotti@m4x.org>
15 years agoRevert "Updates the CSVImporter so that callbacks for cell generation have
Vincent Zanotti [Mon, 20 Apr 2009 19:58:23 +0000 (21:58 +0200)]
Revert "Updates the CSVImporter so that callbacks for cell generation have
access to values that are already available."
Fix was worse than the original issue, as the getValue method is used in two
completely different ways in makeRequestArgs and makeAssoc.

This reverts commit 82ccb5452cd953d71c49e0075d9ecbbb2f6b5456.

15 years agoAccept User and Profile object as condition.
Florent Bruneau [Sun, 22 Feb 2009 21:35:32 +0000 (22:35 +0100)]
Accept User and Profile object as condition.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
15 years agoMerge commit 'origin/core-1.0.0' into core
Vincent Zanotti [Fri, 10 Apr 2009 00:04:28 +0000 (02:04 +0200)]
Merge commit 'origin/core-1.0.0' into core

15 years agoUpdates the CSVImporter so that callbacks for cell generation have access to values...
Vincent Zanotti [Thu, 9 Apr 2009 23:59:55 +0000 (01:59 +0200)]
Updates the CSVImporter so that callbacks for cell generation have access to values that are already available.

Signed-off-by: Vincent Zanotti <vincent.zanotti@m4x.org>
15 years agoAdd a 'flat' mode to PlArrayIterator.
Florent Bruneau [Sat, 14 Feb 2009 17:43:32 +0000 (18:43 +0100)]
Add a 'flat' mode to PlArrayIterator.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
15 years agoHelper function to format some queries.
Florent Bruneau [Sat, 14 Feb 2009 17:16:19 +0000 (18:16 +0100)]
Helper function to format some queries.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
15 years agoAdd a parameter to allow recompilation of templates that changed when not
Florent Bruneau [Sun, 1 Feb 2009 15:48:08 +0000 (16:48 +0100)]
Add a parameter to allow recompilation of templates that changed when not
in debug mode.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
15 years agoFix another notice.
Florent Bruneau [Sun, 1 Feb 2009 13:16:08 +0000 (14:16 +0100)]
Fix another notice.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
15 years agoFix a notice.
Florent Bruneau [Sun, 1 Feb 2009 13:13:11 +0000 (14:13 +0100)]
Fix a notice.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
15 years agoAdd PlDict that wraps an array and exposes the same API than Get:: Post::,
Florent Bruneau [Tue, 27 Jan 2009 21:36:49 +0000 (22:36 +0100)]
Add PlDict that wraps an array and exposes the same API than Get:: Post::,
Env::, Session::.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
15 years agoAdd a small prefilter on plpage to avoid notices when using {if $machin}
Florent Bruneau [Tue, 27 Jan 2009 21:20:30 +0000 (22:20 +0100)]
Add a small prefilter on plpage to avoid notices when using {if $machin}

Just write {if t($machin)} to avoid the notice.

WARN: only works with pattern {if t(...)}, don't try {if t(...) || t(...)}
(or improve the regexp :).

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>