Permalink
Browse files

pre-2.0.3 commit

  • Loading branch information...
1 parent 2678141 commit a4125762de75eea9e70a2083dd8787614f451393 romaindeveaud committed May 25, 2010
Showing with 3,537 additions and 17 deletions.
  1. +5 −1 ChangeLog
  2. +12 −4 README
  3. +1 −2 TODO
  4. +2 −0 apps/frontend/config/app.yml
  5. +1 −1 apps/frontend/config/settings.yml
  6. +1 −1 config/ProjectConfiguration.class.php
  7. +28 −6 install
  8. +7 −2 lib/model/doctrine/meeting.class.php
  9. +7 −0 plugins/sfJqueryReloadedPlugin/LICENSE
  10. +158 −0 plugins/sfJqueryReloadedPlugin/README
  11. +43 −0 plugins/sfJqueryReloadedPlugin/config/settings.yml
  12. +858 −0 plugins/sfJqueryReloadedPlugin/lib/helper/jQueryHelper.php
  13. +198 −0 plugins/sfJqueryReloadedPlugin/package.xml
  14. 0 plugins/sfJqueryReloadedPlugin/web/css/.sf
  15. +48 −0 plugins/sfJqueryReloadedPlugin/web/css/JqueryAutocomplete.css
  16. BIN plugins/sfJqueryReloadedPlugin/web/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png
  17. BIN plugins/sfJqueryReloadedPlugin/web/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png
  18. BIN plugins/sfJqueryReloadedPlugin/web/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png
  19. BIN plugins/sfJqueryReloadedPlugin/web/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png
  20. BIN plugins/sfJqueryReloadedPlugin/web/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png
  21. BIN plugins/sfJqueryReloadedPlugin/web/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png
  22. BIN plugins/sfJqueryReloadedPlugin/web/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png
  23. BIN plugins/sfJqueryReloadedPlugin/web/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
  24. BIN plugins/sfJqueryReloadedPlugin/web/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
  25. BIN plugins/sfJqueryReloadedPlugin/web/css/ui-lightness/images/ui-icons_222222_256x240.png
  26. BIN plugins/sfJqueryReloadedPlugin/web/css/ui-lightness/images/ui-icons_228ef1_256x240.png
  27. BIN plugins/sfJqueryReloadedPlugin/web/css/ui-lightness/images/ui-icons_ef8c08_256x240.png
  28. BIN plugins/sfJqueryReloadedPlugin/web/css/ui-lightness/images/ui-icons_ffd27a_256x240.png
  29. BIN plugins/sfJqueryReloadedPlugin/web/css/ui-lightness/images/ui-icons_ffffff_256x240.png
  30. +406 −0 plugins/sfJqueryReloadedPlugin/web/css/ui-lightness/jquery-ui-1.7.2.custom.css
  31. 0 plugins/sfJqueryReloadedPlugin/web/images/.sf
  32. +19 −0 plugins/sfJqueryReloadedPlugin/web/js/jquery-1.3.2.min.js
  33. +154 −0 plugins/sfJqueryReloadedPlugin/web/js/jquery-1.4.2.min.js
  34. 0 plugins/sfJqueryReloadedPlugin/web/js/plugins/.sf
  35. +298 −0 plugins/sfJqueryReloadedPlugin/web/js/plugins/jquery-ui-1.7.2.custom.min.js
  36. +808 −0 plugins/sfJqueryReloadedPlugin/web/js/plugins/jquery.autocomplete.js
  37. +13 −0 plugins/sfJqueryReloadedPlugin/web/js/plugins/jquery.autocomplete.min.js
  38. +12 −0 plugins/sfJqueryReloadedPlugin/web/js/plugins/jquery.autocomplete.pack.js
  39. +88 −0 plugins/uapvFormExtraPlugin/README
  40. +3 −0 plugins/uapvFormExtraPlugin/config/app.yml
  41. +60 −0 plugins/uapvFormExtraPlugin/lib/uapvFormExtraUtils.class.php
  42. +115 −0 ...FormExtraPlugin/lib/vendor/sfFormExtraPlugin/lib/widget/sfWidgetFormJQueryAutocompleter.class.php
  43. +59 −0 plugins/uapvFormExtraPlugin/lib/widget/uapvWidgetFormJQueryAutocompleter.class.php
  44. +31 −0 plugins/uapvFormExtraPlugin/modules/autocomplete/actions/actions.class.php
  45. +48 −0 plugins/uapvFormExtraPlugin/web/css/JqueryAutocomplete.css
  46. +22 −0 plugins/uapvFormExtraPlugin/web/css/ac_list.css
  47. BIN plugins/uapvFormExtraPlugin/web/images/37.png
  48. BIN plugins/uapvFormExtraPlugin/web/images/indicator.gif
  49. +19 −0 plugins/uapvFormExtraPlugin/web/js/jquery-1.3.2.min.js
  50. +13 −0 plugins/uapvFormExtraPlugin/web/js/jquery.autocomplete.min.js
View
@@ -1,12 +1,16 @@
RdvZ ChangeLog
version 2.0.3
- 2010-05-06 Romain Deveaud <romain.deveaud@univ-avignon.fr>
+ 2010-05-25 Romain Deveaud <romain.deveaud@univ-avignon.fr>
* new meeting bookmarking feature.
* user help is now available.
* svn externals pointing to private repositories fixed.
* logout bugfix if not using a CAS server.
+ * configuration of secure SMTP connection in install script.
+ * configuration of notification mails sender in the install script.
+ * configuration of the number of hash characters in install script.
+ * LDAP mail autocomplete is available but needs a little hack, see README.
version 2.0.2
2010-04-09 Romain Deveaud <romain.deveaud@univ-avignon.fr>
View
16 README
@@ -1,10 +1,11 @@
-=================-
- RdvZ version 2.0.2 2010/04/07
+ RdvZ version 2.0.3 2010/05/25
-=================-
Bug tracker : https://sourcesup.cru.fr/tracker/?atid=2113&group_id=586&func=browse
-Developper contact : romain.deveaud@univ-avignon.fr
+Developper contact : - https://listes.univ-avignon.fr/wws/info/gpl
+ - romain.deveaud@univ-avignon.fr
@@ -103,7 +104,14 @@ will be automatically updated.
-7. Did you find a bug?
+7. I want LDAP autocompletion on mail adresses
+
+See the README of `plugins/uapvFormExtraPlugin`. Currently a very experimental feature,
+feel free to contribute !
+
+
+
+8. Did you find a bug?
Or maybe you think the application or the installer can be improved? Visit our
bugtracker at https://sourcesup.cru.fr/tracker/?atid=2113&group_id=586&func=browse
@@ -112,7 +120,7 @@ french if you are comfortable with it) ; we will answer as soon as possible.
-8. For a better RdvZ experience...
+9. For a better RdvZ experience...
RdvZ works on Firefox, Google Chrome, Opera and Safari browsers, but its design
is optimized for the following versions :
View
3 TODO
@@ -1,5 +1,5 @@
-=================-
- RdvZ version 2.0.2 2010/05/06
+ RdvZ version 2.0.3 2010/05/25
-=================-
@@ -16,7 +16,6 @@ RdvZ development.
shouldn't.
- configuration of closing and deleting dates.
- mail notification when a meeting has been edited.
- - configuration of hash character number.
-------------------------------------------------------------------------------
Features that would be nice.
@@ -35,6 +35,8 @@ all:
user_id: rdvz_user_id
# user_id: id
+ hash_nb_chars: 3
+
org_name: "Université d'Avignon et des Pays de Vaucluse"
mail_sender: "rdvz-admin@univ-avignon.fr"
# org_name: "Mon RdvZ"
@@ -27,7 +27,7 @@ all:
default_culture: fr_FR
# Form security secret (CSRF protection)
csrf_secret: dfac37facb8499c931c70a84c303594a8f9b55e0 # Unique secret to enable CSRF protection or false to disable
- enabled_modules: [default, authentication, error]
+ enabled_modules: [default, authentication, error, autocomplete]
standard_helpers: [Partial, Cache, Form, I18N]
# Output escaping settings
@@ -7,7 +7,7 @@ class ProjectConfiguration extends sfProjectConfiguration
{
public function setup()
{
- $this->enablePlugins('sfDoctrinePlugin','uapvAuthPlugin','uapvErrorPlugin');
+ $this->enablePlugins('sfDoctrinePlugin','uapvAuthPlugin','uapvErrorPlugin','uapvFormExtraPlugin');
$this->enablePlugins('sfFormExtraPlugin');
$this->enablePlugins('sfJqueryReloadedPlugin');
}
View
34 install
@@ -104,7 +104,7 @@ all:
default_culture: fr_FR
# Form security secret (CSRF protection)
csrf_secret: dfac37facb8499c931c70a84c303594a8f9b55e0 # Unique secret to enable CSRF protection or false to disable
- enabled_modules: [default, authentication, error]
+ enabled_modules: [default, authentication, error, autocomplete]
standard_helpers: [Partial, Cache, Form, I18N]
# Output escaping settings
@@ -201,7 +201,7 @@ all:
default_culture: fr_FR
# Form security secret (CSRF protection)
csrf_secret: dfac37facb8499c931c70a84c303594a8f9b55e0 # Unique secret to enable CSRF protection or false to disable
- enabled_modules: [default, authentication, error]
+ enabled_modules: [default, authentication, error, autocomplete]
standard_helpers: [Partial, Cache, Form, I18N]
# Output escaping settings
@@ -308,7 +308,7 @@ all:
default_culture: fr_FR
# Form security secret (CSRF protection)
csrf_secret: dfac37facb8499c931c70a84c303594a8f9b55e0 # Unique secret to enable CSRF protection or false to disable
- enabled_modules: [default, authentication, error]
+ enabled_modules: [default, authentication, error, autocomplete]
standard_helpers: [Partial, Cache, Form, I18N]
# Output escaping settings
@@ -352,11 +352,30 @@ fi
echo -e "
${txtcyn} ** Configuration SMTP...${txtrst}"
+PS3="Choisissez (1-2) : "
+echo "Voulez-vous utiliser le SMTP en mode SSL?"
+select type_a in "Oui" "Non"
+do
+ break
+done
+
+if [ "$type_a" = "Non" ]; then
read -er -p "Adresse du serveur SMTP (ex : smtp.univ-avignon.fr) : " smtp_url
read -er -p "Port du SMTP : " smtp_port
+smtp_user="~"
+smtp_pass="~"
+smtp_encrypt="~"
+elif [ "$type_a" = "Oui" ]; then
+read -er -p "Adresse du serveur SMTP (ex : smtp.univ-avignon.fr) : " smtp_url
+read -er -p "Port du SMTP : " smtp_port
+read -er -p "Nom d'utilisateur ayant les droits SMTP : " smtp_user
+read -ers -p "Mot de passe utilisateur : " smtp_pass
+smtp_encrypt="ssl"
+fi
echo -e "
${txtcyn} ** Informations complémentaires...${txtrst}"
+read -er -p "Nombre de charactères utilisés pour coder les sondages (3 est très correct) : " hash_nb_chars
read -er -p "Url de la page RdvZ (ex : rdvz.univ-avignon.fr) : " url
read -er -p "Nom de votre organisation (ex : Université d'Avignon) : " org
read -er -p "Adresse mail de l'application (ex : rdvz-admin@univ-avignon.fr) : " mail_sender
@@ -413,9 +432,9 @@ all:
param:
host: ${smtp_url}
port: ${smtp_port}
- encryption: ~
- username: ~
- password: ~
+ encryption: ${smtp_encrypt}
+ username: ${smtp_user}
+ password: ${smtp_pass}
routing:
class: sfPatternRouting
@@ -433,6 +452,8 @@ echo "
url: ${url}
org_name: \"${org}\"
mail_sender: \"${mail_sender}\"
+
+ hash_nb_chars: ${hash_nb_chars}
.array:
languages:
@@ -444,4 +465,5 @@ echo -e "${txtgrn}[OK]${txtrst}"
echo -n "Création des tables de la base de données..."
php symfony doctrine:build --all-classes --and-migrate
echo -e "${txtgrn}[OK]${txtrst}"
+php symfony plugin:publish-assets
php symfony cc
@@ -22,12 +22,17 @@ public function save(Doctrine_Connection $conn = null, $dont = true)
{
if($this->isNew() && $dont)
{
+ $base_string = '' ;
+
+ for($i = 0 ; $i < sfConfig::get('app_hash_nb_chars') ; ++$i)
+ $base_string .= 'z' ;
+
$min = 0;
- $max = base_convert ('zzz', 36, 10); // hash is 3 chars max.
+ $max = base_convert ($base_string, 36, 10);
$id = rand($min, $max) ;
$hash = base_convert($id, 10, 36) ;
- while(Doctrine::getTable('meeting')->hashExists($hash) || strlen($hash) != 3)
+ while(Doctrine::getTable('meeting')->hashExists($hash) || strlen($hash) != sfConfig::get('app_hash_nb_chars'))
$hash = base_convert($id, 10, 36) ;
$this->setHash($hash) ;
@@ -0,0 +1,7 @@
+Copyright (c) 2004-2008 Fourat ZOUARI
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,158 @@
+= Jquery Plug-In =
+
+The `sfJqueryReloadedPlugin` offers helpers that integrate the [http://www.jquery.com/ Jquery] Javascript framework.
+
+== Support ==
+Please contact the [http://groups.google.com/group/sfjqueryreloadedplugin sfJqueryReloadedPlugin Google group]. That is the best place to report bugs. Some of the maintainers may also be found in the
+`#symfony` channel @ Freenode IRC.
+
+== Licence ==
+This plugin is licensed under the MIT license. For the full copyright and license information, please view the LICENSE file that was distributed with this source code.
+
+== Introduction ==
+
+Symfony 1.0 offered a set of PHP helper functions which invoked popular AJAX functionality, such as forms that update particular page elements rather than the entire page, autocomplete/typeahead, and the like. However, these helpers were built on Prototype, while jQuery has since become a clearly superior JavaScript library. Also, in Symfony 1.2 these helpers were deprecated and in Symfony 1.4 they are gone. sfJqueryReloadedPlugin is a reimplementation of these helper functions that uses the jQuery library instead of Prototype.
+
+Just make sure you import the helper group `jQuery` with a `use_helper` call:
+
+{{{
+use_helper('jQuery');
+}}}
+
+And give each helper call a `jq_` prefix.
+
+So the classic prototype helper call:
+
+{{{
+<?php echo link_to_remote(....);?>
+}}}
+
+Becomes:
+
+{{{
+<?php echo jq_link_to_remote(....);?>
+}}}
+
+== Installation ==
+
+ * Install the plugin
+{{{
+$ symfony $ symfony plugin:install sfJqueryReloadedPlugin
+}}}
+
+Note that you can also check it out as an svn external from:
+
+{{{
+http://svn.symfony-project.com/plugins/sfJqueryReloadedPlugin/1.2/trunk
+}}}
+
+ * Optional: change jquery_web_dir in setting.yml if you are
+ not using the traditional symbolic link to the webdir of the plugin
+ (or copying the plugin's /web folder to a folder called sfJqueryPlugin
+ in your web dir, which will also work automatically with our defaults).
+{{{
+ all:
+ .settings:
+ jquery_web_dir: /sfJqueryPlugin
+}}}
+ * Optional: within that folder's /js/ subfolder you might have a different
+ version of jquery other than a minimized 1.3.1 which is what
+ you currently get if you allow the plugin to supply it. This can be a relative path
+ if the file is located in a different folder.
+{{{
+ all:
+ .settings:
+ jquery_core: jquery-1.3.1.min.js
+}}}
+ * Optional: specify different versions of the ui and autocomplete plugins, which would be looked for in the /js/plugins/ subfolder of your jquery_web_dir. Again, you can use relative paths relative to that location in web space if they are in a different place.
+{{{
+ all:
+ .settings:
+ jquery_sortable: jquery-ui-1.7.2.custom.min.js
+ jquery_autocomplete: jquery.autocomplete.min.js
+}}}
+
+If you are running your websites under Microsoft Windows, you also have to manually copy the {{{./web}}}
+directory of the plugin in the {{{%SF_ROOT_DIR%/web}}} directory of your project
+and rename it to {{{sfJqueryReloadedPlugin}}}. (The ./symfony plugin:publish-assets task should be able to do this for you.)
+
+== Basic syntax ==
+
+=== Declaring the helper in templates ===
+
+ * Inside a template
+{{{
+<?php use_helper('jQuery') ?>
+}}}
+
+ * In `settings.yml`, for all modules
+{{{
+standard_helpers: [..., jQuery]
+}}}
+
+When you use functions that require jQuery plugins, specifically
+`jq_sortable_element` and `jq_input_auto_complete_tag`, the appropriate
+JavaScript files are automatically added. However, if you are attempting
+to do this from your `layout.php` (including via a component or
+partial referenced by `layout.php` rather than an action template),
+it will not work because `get_javascripts()` has already been invoked.
+To resolve this issue, call:
+
+{{{
+<?php jq_add_plugins_by_name(array('sortable', 'autocomplete')) ?>
+}}}
+
+At the top of your `layout.php` file, or just add the js files for the
+plugins you need directly to your project's `view.yml` file. The first
+solution is more maintainable because it means you don't have to pay
+close attention when we update to a newer release of a plugin.
+
+=== Using Jquery methods ===
+
+To use Jquery methods, refer to ''Chapter 11'' of the classic Symfony 1.0 documentation [http://www.symfony-project.com/book/1_0/11-Ajax-Integration Ajax Integration]. All helper functions described in that chapter can be used with the '''jq_''' prefix.
+
+Note that jQuery and Prototype select elements differently. In cases where selecting just one element is the only thing that makes sense, the helper functions automatically prepend a '''#''' so that the selector behaves as it would in Prototype.
+
+== jQuery Helpers documentation ==
+
+ * `jq_periodically_call_remote($options = array())`
+ * `jq_link_to_function($name, $function, $html_options = array())`
+ * `jq_link_to_remote($name, $options = array(), $html_options = array())`
+ * `jq_update_element_function($element_id, $options = array())`
+ * `jq_form_remote_tag($options = array(), $options_html = array())`
+ * `jq_submit_to_remote($name, $value, $options = array(), $options_html = array())`
+ * `jq_javascript_tag($content)`
+ * `jq_visual_effect($effect, $element_id = false, $js_options = array())`
+ * `jq_add_plugins_by_name($options = array())`
+ * `jq_sortable_element($selector, $options)` (tom@punkave.com)
+ * `jq_input_auto_complete_tag($name, $value, $url, $tag_options = array(), $completion_options = array()) (bruno.adele@jesuislibre.org)
+ * function jq_draggable_element($selector, $options = array())
+ * function jq_drop_receiving_element($selector, $options = array())
+
+These are the methods currently supported by sfJqueryReloadedPlugin. Also see the source for newer and more experimental implementations. Future changes may integrate more functions.
+
+== Using JSON ==
+
+It is possible to use JSON responses with sfJqueryReloadedPlugin. Be sure to read
+[http://trac.symfony-project.com/wiki/AjaxAndJSON#jsonwithoutheader JSON Without Header] and consider:
+{{{
+<?php echo jq_link_to_remote(image_tag('icons/delete.png'),
+ array('url' => '@delete')),
+ 'dataType' => 'json',
+ 'success' => 'leaveGroup(request)')) ?>
+}}}
+
+== TODO ==
+
+ * Add unit tests
+ * Use `sprintf` for string manipulation
+ * Implement the rest of the Javascript Helper:
+
+ * draggable_element
+ * drop_receiving_element
+ * input_in_place_editor_tag
+
+== Changelog ==
+
+See the [http://www.symfony-project.org/plugins/sfJqueryReloadedPlugin?tab=Changelog official changelog on the Symfony plugins site].
+
Oops, something went wrong.

0 comments on commit a412576

Please sign in to comment.