Raphaël Barrois [Fri, 30 Apr 2010 22:25:32 +0000 (00:25 +0200)]
Add tests for UFC_NameTokens
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Fri, 30 Apr 2010 22:24:39 +0000 (00:24 +0200)]
Improve args for UFC_NameTokens
allow a single token ; a call to pl_flatten might be
useful here
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Wed, 28 Apr 2010 22:53:15 +0000 (00:53 +0200)]
Add uts for UFC_Name (particle, variants)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Wed, 28 Apr 2010 22:52:54 +0000 (00:52 +0200)]
Fix UFC_Name::PARTICLE to be easier to use
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Wed, 28 Apr 2010 21:24:16 +0000 (23:24 +0200)]
Add partial tests for UFC_Name
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Wed, 28 Apr 2010 21:23:55 +0000 (23:23 +0200)]
Add UFC_Name::EXACT mode
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Florent Bruneau [Wed, 28 Apr 2010 19:53:37 +0000 (21:53 +0200)]
Update core and replace constructors of some UFC that can take several
different argument at once by pl_flatten(func_get_args()).
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Raphaël Barrois [Wed, 28 Apr 2010 18:53:23 +0000 (20:53 +0200)]
Fix a bug in UFC_EducationField (wrong table name)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Wed, 28 Apr 2010 18:52:43 +0000 (20:52 +0200)]
Add tests for UFC_EducationField
Todo: update database so that this tests have a meaning...
fields are empty for all but 28 profiles !
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Wed, 28 Apr 2010 18:44:48 +0000 (20:44 +0200)]
Fix bug in UFC_EducationDegree
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Wed, 28 Apr 2010 18:44:33 +0000 (20:44 +0200)]
Add ut for UFC_EducationDegree
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Wed, 28 Apr 2010 15:17:46 +0000 (17:17 +0200)]
Add check against PHP's 0 == 'anystring' problem
We might have to check lots of code to avoid this...
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Wed, 28 Apr 2010 15:02:56 +0000 (17:02 +0200)]
Improve listing of test cases for ut/userfiltertest
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Wed, 28 Apr 2010 14:35:43 +0000 (16:35 +0200)]
Improve design of userfiltertest
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Wed, 28 Apr 2010 13:55:07 +0000 (15:55 +0200)]
Fix typo
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Wed, 28 Apr 2010 13:27:28 +0000 (15:27 +0200)]
Remove duplicate test
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Stéphane Jacob [Wed, 28 Apr 2010 12:20:12 +0000 (14:20 +0200)]
Only proposes @melix aliases for login.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Raphaël Barrois [Wed, 28 Apr 2010 12:26:30 +0000 (14:26 +0200)]
Add tests for UFC_Promo (tests for MX/PHD disabled)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Tue, 27 Apr 2010 11:53:26 +0000 (13:53 +0200)]
Update userfiltertest since getTotalCOunt is now fixed
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Tue, 27 Apr 2010 11:29:32 +0000 (13:29 +0200)]
Fix UserFilter->getTotalCount
Split it into getTotalUserCount and getTotalProfileCount
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Sun, 25 Apr 2010 14:25:38 +0000 (16:25 +0200)]
Fix template for profile (remaining $o)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Stéphane Jacob [Thu, 22 Apr 2010 09:03:43 +0000 (11:03 +0200)]
Updates core
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Florent Bruneau [Sun, 18 Apr 2010 12:55:04 +0000 (14:55 +0200)]
A first batch of tests of the UserFilter.
Are (partially) tested:
* UFC_HasProfile
* UFC_Hruid
* UFC_Hrpid
* HFC_Ip
A lot of work remains to:
* test *all* the UFC and all the parameters of the UFCs.
* test fetch of both UIDs and PIDs
* test UFO
* test boolean operations on UFCs.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Stéphane Jacob [Tue, 13 Apr 2010 14:08:08 +0000 (16:08 +0200)]
Typo.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Stéphane Jacob [Tue, 13 Apr 2010 14:05:37 +0000 (16:05 +0200)]
Updates education upgrade script.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Florent Bruneau [Mon, 12 Apr 2010 20:26:51 +0000 (22:26 +0200)]
Fix typo.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sun, 11 Apr 2010 14:31:44 +0000 (16:31 +0200)]
Fix Xnet's trombi, fix display of bound in trombi.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sun, 11 Apr 2010 14:01:25 +0000 (16:01 +0200)]
Fix Recoverable Errors when fetching jobs and addresses from the profile.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sun, 11 Apr 2010 13:42:57 +0000 (15:42 +0200)]
Fix Profile::getWebSite().
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sun, 11 Apr 2010 10:20:24 +0000 (12:20 +0200)]
Fix filter for group trombi.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sun, 11 Apr 2010 09:44:55 +0000 (11:44 +0200)]
No more hacks to handle '%grp'.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sat, 10 Apr 2010 15:58:10 +0000 (17:58 +0200)]
Should fix the "Trombinoscope" (at least for search and MLs).
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sat, 10 Apr 2010 12:28:37 +0000 (14:28 +0200)]
Typo.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sat, 10 Apr 2010 11:54:02 +0000 (13:54 +0200)]
Improves layout.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sat, 10 Apr 2010 11:52:39 +0000 (13:52 +0200)]
Fix warning when a profile has no promo.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sat, 10 Apr 2010 11:19:00 +0000 (13:19 +0200)]
Fix references to undefined variable.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Sat, 10 Apr 2010 07:53:53 +0000 (09:53 +0200)]
Add command for list rpc management in Makefile.
make start-listrpc
-> starts the list RPC daemon in background. Logs are
not accessible in this mode, so this cannot be used to debug
this rpc server (but this can be used to work on the website).
make stop-listrpc
-> stops an instance of the RPC daemon started using make start-listrpc
make restart-listrpc
-> stops + starts
make start-listrpc-fg
-> starts the list RPC daemon in foreground. Logs are accessible,
the daemon can be stopped using ^C
Important Note: You can change the port of your RPC daemon by adding a
parameter rpcport in the Lists section of your platal.conf:
[Lists]
rpcport = "42420"
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Fri, 9 Apr 2010 21:40:15 +0000 (23:40 +0200)]
Update banana.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Fri, 9 Apr 2010 21:39:22 +0000 (23:39 +0200)]
Fix list rpc.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Fri, 9 Apr 2010 17:39:40 +0000 (19:39 +0200)]
Kill ugly symlinks from banana sources to include/banana.
Also simplify includes: including banana is done by including
banana/hooks.inc.php.
You are highly encouraged to cleanup your working copy by running:
find include/banana/ -type l -delete
WARN: Tested only with the forums, ML moderation and ML archives are
not tested yet (requires list.rpc.py to be started).
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Fri, 9 Apr 2010 16:51:50 +0000 (18:51 +0200)]
Oops, fix pathes.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Fri, 9 Apr 2010 16:46:36 +0000 (18:46 +0200)]
Fetch banana as a submodule: no external checkout required anymore.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Stéphane Jacob [Fri, 9 Apr 2010 16:26:36 +0000 (18:26 +0200)]
Removes calls to register_watch_op.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Stéphane Jacob [Fri, 9 Apr 2010 15:26:46 +0000 (17:26 +0200)]
Updates addresses upgrade script.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Florent Bruneau [Fri, 9 Apr 2010 14:41:53 +0000 (16:41 +0200)]
Add -u switch to update.sh to run in "unsafe" mode.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Florent Bruneau [Fri, 9 Apr 2010 14:39:00 +0000 (16:39 +0200)]
Factorize some code, move some useful stuff in pervasive.sh for future
reuse.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Stéphane Jacob [Fri, 9 Apr 2010 14:04:49 +0000 (16:04 +0200)]
Fixes phones' upgrade script.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Stéphane Jacob [Thu, 8 Apr 2010 19:53:33 +0000 (21:53 +0200)]
Education update.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Stéphane Jacob [Wed, 7 Apr 2010 08:21:51 +0000 (10:21 +0200)]
Renames validation template and fixes promotion display.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Raphaël Barrois [Fri, 2 Apr 2010 13:09:45 +0000 (15:09 +0200)]
Update SECURITY file
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Fri, 2 Apr 2010 08:44:34 +0000 (10:44 +0200)]
Fix freetext visibility
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Fri, 2 Apr 2010 08:23:53 +0000 (10:23 +0200)]
Set visibility for section and binets to private
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Fri, 2 Apr 2010 07:52:30 +0000 (09:52 +0200)]
Fixes remaining $p instead of $profile in profile.tpl
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Stéphane Jacob [Thu, 1 Apr 2010 20:43:00 +0000 (22:43 +0200)]
Moves corps lists to newdirectory.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Stéphane Jacob [Mon, 29 Mar 2010 08:38:24 +0000 (10:38 +0200)]
Adds Instituto de Empresa.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Stéphane Jacob [Thu, 25 Mar 2010 17:20:45 +0000 (18:20 +0100)]
Fixes JS in profile edition.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Stéphane Jacob [Thu, 25 Mar 2010 14:13:25 +0000 (15:13 +0100)]
Adapts orangisation to master and PhD and merges it into the main profile edition.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Stéphane Jacob [Thu, 25 Mar 2010 14:13:54 +0000 (15:13 +0100)]
Adds education related functions to Profile class.
Signed-off-by: Stéphane Jacob <sj@m4x.org>
Raphaël Barrois [Wed, 24 Mar 2010 10:39:43 +0000 (11:39 +0100)]
Rename ProfileBlah setting to ProfileSettingBlah
In order to avoid collision with ProfileFields
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Wed, 24 Mar 2010 10:14:37 +0000 (11:14 +0100)]
Rename $p/$o to $profile/$owner in profile template
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Tue, 23 Mar 2010 10:54:29 +0000 (11:54 +0100)]
Merge branch 'account'
Raphaël Barrois [Mon, 22 Mar 2010 22:06:37 +0000 (23:06 +0100)]
Display expertise in mentor view
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Mon, 22 Mar 2010 21:54:11 +0000 (22:54 +0100)]
Fix referent display
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Mon, 22 Mar 2010 21:53:11 +0000 (22:53 +0100)]
Add Profile->displayEmail()
Either fetches it from the owner User, of from the
profile.email_directory field in the DB
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Mon, 22 Mar 2010 21:36:52 +0000 (22:36 +0100)]
Add ProfileMentoringSectors / ProfileMentoringCountries
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Mon, 22 Mar 2010 20:18:42 +0000 (21:18 +0100)]
Fix minor Smarty warnings in minifiche.tpl
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Mon, 22 Mar 2010 19:50:58 +0000 (20:50 +0100)]
Improve batch fetching efficiency
Store in each profile the list of fields which have already been fetched
(avoids refetching an empty field)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Mon, 22 Mar 2010 18:35:19 +0000 (19:35 +0100)]
Update visibility model, apply to photo fetching
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Mon, 22 Mar 2010 15:47:40 +0000 (16:47 +0100)]
No need for batch loading of Photo data
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Mon, 22 Mar 2010 15:08:44 +0000 (16:08 +0100)]
Typo
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Mon, 22 Mar 2010 15:06:40 +0000 (16:06 +0100)]
Use batch fetchers for search
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Mon, 22 Mar 2010 15:04:30 +0000 (16:04 +0100)]
Add new constant for batch fetching
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Mon, 22 Mar 2010 14:59:21 +0000 (15:59 +0100)]
Add support for batch fetchin in Userfilters
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Mon, 22 Mar 2010 13:03:43 +0000 (14:03 +0100)]
Update minifiches for new Profile/Account
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Mon, 22 Mar 2010 12:50:26 +0000 (13:50 +0100)]
Update core (for PlEmptyIterator)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Mon, 22 Mar 2010 12:45:55 +0000 (13:45 +0100)]
Update profile display for new Account/Profile API
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Mon, 22 Mar 2010 12:45:11 +0000 (13:45 +0100)]
Store education field in Education objects
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Mon, 22 Mar 2010 12:34:05 +0000 (13:34 +0100)]
Fix a warning in profile display
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Mon, 22 Mar 2010 12:29:06 +0000 (13:29 +0100)]
Update display of jobs in profiles
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Mon, 22 Mar 2010 12:22:12 +0000 (13:22 +0100)]
Give access to Job::$address
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Mon, 22 Mar 2010 11:58:59 +0000 (12:58 +0100)]
Fix smarty display_phones for new model
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Mon, 22 Mar 2010 11:58:43 +0000 (12:58 +0100)]
Fix smarty display_address for new model
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Mon, 22 Mar 2010 10:30:22 +0000 (11:30 +0100)]
Fix ProfileAddresses filtering
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Mon, 22 Mar 2010 10:13:37 +0000 (11:13 +0100)]
Modify ProfileFields retrieval API : no more iterators
$profile->getAddresses now returns an array, use
$profile->iterAddresses for a PlIterator
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Mon, 22 Mar 2010 09:53:07 +0000 (10:53 +0100)]
Add ProfileCorps to Profile
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Mon, 22 Mar 2010 09:24:52 +0000 (10:24 +0100)]
Handle the flag EDUCATION_ALL in ProfileFields
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Mon, 22 Mar 2010 09:23:41 +0000 (10:23 +0100)]
Rename education_fmt to display_education and make it a Smarty plugin
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Mon, 22 Mar 2010 08:30:34 +0000 (09:30 +0100)]
Fix medals fetching for Profiles
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Mon, 22 Mar 2010 08:30:22 +0000 (09:30 +0100)]
Store phones in Profile
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Sat, 20 Mar 2010 10:38:29 +0000 (11:38 +0100)]
Add isDead function to Profile
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Sat, 20 Mar 2010 00:40:03 +0000 (01:40 +0100)]
Fix smarty assigns for full profile display
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Sat, 20 Mar 2010 00:39:40 +0000 (01:39 +0100)]
Add function for fetching more info about a user's groups
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Fri, 19 Mar 2010 23:59:03 +0000 (00:59 +0100)]
Fetch section and binets names
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Fri, 19 Mar 2010 23:12:15 +0000 (00:12 +0100)]
Simplify profile fetching
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Fri, 19 Mar 2010 23:11:57 +0000 (00:11 +0100)]
Fix a few ProfileFields (Medals, Corps)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Fri, 19 Mar 2010 23:11:33 +0000 (00:11 +0100)]
Add Medals field to profile
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Fri, 19 Mar 2010 17:23:32 +0000 (18:23 +0100)]
Fix ProfileEducation fetching and display
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Fri, 19 Mar 2010 16:39:26 +0000 (17:39 +0100)]
Fix display of jobs in minifiches
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Fri, 19 Mar 2010 16:37:50 +0000 (17:37 +0100)]
Flatten results yielded by the various ProfileFields
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Raphaël Barrois [Fri, 19 Mar 2010 16:05:54 +0000 (17:05 +0100)]
Fix warning about abstract static functions
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>