[symfony-users] Re: sfPropelVersionableBehaviorPlugin: creating a new resource version without modifying the resource
Georg, I actually think that your use of the plugin is far from its original purpose. The plugin does versioning, you want to do workflow. So no, the plugin is not very well designed for your use, but I guess it will probably stay that way... Cheers, François 2008/3/28, Georg Sorst [EMAIL PROTECTED]: Hey list, I am currently looking for a way to create a new resource version without modifying the resource itself. The problem is that in order to create a new resource version the behavior's preSave() and postSave() hooks have to be called which is done implicitly by calling the resource's save() method. If I do this the resource will be modified obviously. The conditional versioning doesn't help either as this does the opposite of what I want (modifying the resource without creating a new resource version). What I'm currently doing is manually calling preSave(), addVersion() and postSave() along with some other minor tweaks. This works but requires quite some redundant code. So, am I missing something or is such a functionality not included yet? The background is that I want to (ab)use sfPropelVersionableBehaviorPlugin for some sort of approvable- changes- system. This means for example when a non-admin user edits an object the object itself is not modified but a new version is created nevertheless. The admin can then review this change and either approve and merge it with the object or reject it and just discard the resource version. Thanks and cheers, Georg --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Webmail integration
Hi ! I want to use symfony with a webmail and I don't know what is the best solution ... I would like to use sfSuagr plugin to centralize authentication. Thanks ;) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Admin generator - how to force a field type in 'list' view?
In my 'course' schema, I have a field set to type boolean: column name=from_outside type=boolean default=0/ And in generator.yml, it is automatically set as a checkbox. It displays as a green tick (or empty cell if 0) in list view. The data in the database is either a 1 or a 0 in MySQL and the datatype is an int(11)...the same as the 'integer' datatype fields I have in tables. So, symfony 'knows' that the field 'from_outside' should be displayed as a tick...it's not because of the data. In my cache for the module, I see this in _list_td_tabular.php td?php echo $course-getFromOutside() ? image_tag(sfConfig::get('sf_admin_web_dir').'/images/tick.png') : 'nbsp;' ?/td I found to boolean values on the symfony website: http://www.symfony-project.org/snippets/snippet/84 http://www.symfony-project.org/forum/index.php/m/45129/ http://www.symfony-project.org/forum/index.php/m/45836/ It seems more complex than it should be?? And, if I remember correctly, there is a bit of a bug in AdvancedAdminGeneratorPlugin that does not correctly repopulate a checkbox if the form fails validation, so you might watch for that if you use that plugin...and once you get your tick working! Not sure if any of this helps? And best of luck! On Mar 31, 3:11 am, Ben [EMAIL PROTECTED] wrote: Hi, I have a partial field that displays a boolean in list-view using a generated admin module. At the moment, it displays as '1' when true, but I'd like it to show the 'tick'. What's the proper way to achieve this? I could, of course, have the method return the HTML string to the image, but that's far from ideal. Thanks, Ben --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Lucene Integration
Hi, i have a question regarding the integration of the Lucene Plugin. I'm currently working on a search form for a online community. The Member Tables has different columns like first name, last name, interests etc. And some foreign keys to other tables as well, like an id for the country, the city or education levels. My first questions is, how Lucene connects those tables / foreign keys. For example if i search for the country Germany or the city Duesseldorf, does Lucene connect the foreign tables Countries or Cities with the Member Table and finds those people who are from Germany / Duesseldorf ?! My 2nd question is how could i setup different search options for every user? Bcs. a member has the option to ignore other member. So the other member shouldnt see the one which has ignored him in the network and in the search results. My first thought was to drop the Lucene search result into an array and then to delete the objects which shouldnt be shown to the member (like ignored user). Is there another possibilty with Lucene? Another thought was to create different index files for ignored member. Would this make sense? I would really appreciate any help. Best regards, Marco - Marco Schierhorn Technical Director --- ESV Media GmbH | Meerbuscher Str. 64-78 40670 Meerbusch | Germany Tel. +49 (0)2159 / 9297-930 Fax. +49 (0)2159 / 9297-931 www.esv-group.de | [EMAIL PROTECTED] Geschäftsführer: Heinz Eissing Amtsgericht Neuss | HRB 12902 This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Retain internal value after forward()
Hi all, I'm trying to integrate the Observer pattern into my symfony 1.0 app. When an event occurs observers should be notified and react on it. One observer class should react by sending a mail and thus I'd like to forward the event to an action by calling sfContext::getInstance()-getController()-sendEmail('mail', 'sendMail'); However I can't figure out how do make the event object accessible from within the mailActions-executeSendMail method in a clean way. How would you do it? Thanks in advance, Kasper --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Symfony 1.1 and sfMail
How I can use send mail functionality like sfMail in the symfony 1.1? I know if set compat_10: on in the settings I can use sfMail, but as far as I know this setting uses for compatible old versions symfony with symfony 1.1, am I right? I developing new project on the symfony 1.1 and I need send mail functionality. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] how to create a routing rule to match a filter param
Hi, I've created a routing rule to match a filter param in my routing.yml file but it doesn't work. pro_material: url: /the-professional-material param: { module: material, action: list, filter: filter, filters%5Btype_id%5D: 1} for the URL: /material/filter/filter/filters%5Btype_id%5D/1 I've test also : param: { module: material, action: list, filter: filter, filters[type_id]: 1 } param: { module: material, action: list, filter: filter, filters\[type_id\]: 1 } but none of these match A idea ? Olivier --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Retain internal value after forward()
To retain values, you can do like the filters in Admin generator To set $this-getUser()-getAttributeHolder()-removeNamespace('frontend/test/filte rs'); $this-getUser()-getAttributeHolder()-add($filters, 'frontend/test/filters'); To get filters = $this-getUser()-getAttributeHolder()-getAll('frontend/test/filters'); Olivier -Original Message- From: symfony-users@googlegroups.com [mailto:symfony- [EMAIL PROTECTED] On Behalf Of Kasper G Sent: Monday, March 31, 2008 5:50 PM To: symfony users Subject: [symfony-users] Retain internal value after forward() Hi all, I'm trying to integrate the Observer pattern into my symfony 1.0 app. When an event occurs observers should be notified and react on it. One observer class should react by sending a mail and thus I'd like to forward the event to an action by calling sfContext::getInstance()-getController()-sendEmail('mail', 'sendMail'); However I can't figure out how do make the event object accessible from within the mailActions-executeSendMail method in a clean way. How would you do it? Thanks in advance, Kasper --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] installing symfony via PEAR
I'm having great difficulty installing symfony via PEAR. I can initialize the channel, but when I run pear install symfony/symfony I get the following message: No release available for package pear.symfony-project.com/symfony Cannot initialize 'channel://pear.symfony-project.com, invalid or missing package file Package Channel pear.symfony-project.com/symfony is not valid Install failed I'm able to install other pear items, such as Phing, so I'm not sure what the problem is. I'm using pear 1.7.1 PHP 5.2.5 Zend Enging Version 2.2.0 Apache 2.2.8 on Windows XP Any help would be greatly appreciated, Dean --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Retain internal value after forward()
Thank you for your response, Olivier. Storing the value in the session (through getUser()) is indeed an option. However I do not consider it a very clean one. The information need only be accessible during the current request after the forward but not during subsequent requests. Storing it in the session should be unnecessary and leaves problems such as session cleanup and expired values which I'd like to avoid. Are there any other options? Kasper On Mar 31, 6:16 pm, Olivier LOYNET [EMAIL PROTECTED] wrote: To retain values, you can do like the filters in Admin generator To set $this-getUser()-getAttributeHolder()-removeNamespace('frontend/test/filte rs'); $this-getUser()-getAttributeHolder()-add($filters, 'frontend/test/filters'); To get filters = $this-getUser()-getAttributeHolder()-getAll('frontend/test/filters'); Olivier -Original Message- From: symfony-users@googlegroups.com [mailto:symfony- [EMAIL PROTECTED] On Behalf Of Kasper G Sent: Monday, March 31, 2008 5:50 PM To: symfony users Subject: [symfony-users] Retain internal value after forward() Hi all, I'm trying to integrate the Observer pattern into my symfony 1.0 app. When an event occurs observers should be notified and react on it. One observer class should react by sending a mail and thus I'd like to forward the event to an action by calling sfContext::getInstance()-getController()-sendEmail('mail', 'sendMail'); However I can't figure out how do make the event object accessible from within the mailActions-executeSendMail method in a clean way. How would you do it? Thanks in advance, Kasper --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Retain internal value after forward()
Hi Kasper You probably want to use flash instead: http://www.symfony-project.org/book/1_0/06-Inside-the-Controller-Layer#Flash%20Attributes -Mohammad On Mon, Mar 31, 2008 at 2:04 PM, Kasper G [EMAIL PROTECTED] wrote: Thank you for your response, Olivier. Storing the value in the session (through getUser()) is indeed an option. However I do not consider it a very clean one. The information need only be accessible during the current request after the forward but not during subsequent requests. Storing it in the session should be unnecessary and leaves problems such as session cleanup and expired values which I'd like to avoid. Are there any other options? Kasper On Mar 31, 6:16 pm, Olivier LOYNET [EMAIL PROTECTED] wrote: To retain values, you can do like the filters in Admin generator To set $this-getUser()-getAttributeHolder()-removeNamespace('frontend/test/filte rs'); $this-getUser()-getAttributeHolder()-add($filters, 'frontend/test/filters'); To get filters = $this-getUser()-getAttributeHolder()-getAll('frontend/test/filters'); Olivier -Original Message- From: symfony-users@googlegroups.com [mailto:symfony- [EMAIL PROTECTED] On Behalf Of Kasper G Sent: Monday, March 31, 2008 5:50 PM To: symfony users Subject: [symfony-users] Retain internal value after forward() Hi all, I'm trying to integrate the Observer pattern into my symfony 1.0 app. When an event occurs observers should be notified and react on it. One observer class should react by sending a mail and thus I'd like to forward the event to an action by calling sfContext::getInstance()-getController()-sendEmail('mail', 'sendMail'); However I can't figure out how do make the event object accessible from within the mailActions-executeSendMail method in a clean way. How would you do it? Thanks in advance, Kasper --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Getting querystring keys....
I am trying to figure out if there's a way to get a list of query string keys but looking through the docs I am at a loss. Thanks, James --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] AutoCad Software Free Download AutoCAD 2009 is coming
*ttp://www.designhelp4you.blogspot.com/*http://www.designhelp4you.blogspot.com/ *http://www.designhelp4you.blogspot.com/*http://www.designhelp4you.blogspot.com/ *http://www.designhelp4you.blogspot.com/*http://www.designhelp4you.blogspot.com/ * * tr_1207015357084*Auto CAD EBOOKS*http://www.designhelp4you.blogspot.com/ *AutoCAD 2009* http://www.designhelp4you.blogspot.com/ *Bathroom Design Ideas* http://www.designhelp4you.blogspot.com/ *Introduction* - *Interior designhttp://designhelp4you.blogspot.com/2007/12/home-decorating-ideas.html * - *Home interiors designhttp://designhelp4you.blogspot.com/2007/12/home-interiors-design.html * - *Home decorating ideashttp://designhelp4you.blogspot.com/2007/12/home-decorating-ideas.html * * * *AutoCAD 2009* - *AutoCAD 2009 is cominghttp://designhelp4you.blogspot.com/2008/03/autocad-2009-is-coming.html * - *AutoCad Downloadhttp://designhelp4you.blogspot.com/2008/03/autocad-download.html * - *AutoCAD historyhttp://designhelp4you.blogspot.com/2008/03/autocad-history-for-autocad-nerd.html * - *Autodesk introduces Vstahttp://designhelp4you.blogspot.com/2008/03/autodesk-introduces-vsta.html * - *Invalid displayhttp://designhelp4you.blogspot.com/2008/03/invalid-display-of-polyline-with_21.html * - *Invalid display of polyline with negative thickness in AutoCADhttp://designhelp4you.blogspot.com/2008/03/invalid-display-of-polyline-with.html * - *Network license news in AutoCAD 2009http://designhelp4you.blogspot.com/2008/03/network-license-news-in-autocad-2009.html * - *Purge of DWG takes forever - solutionhttp://designhelp4you.blogspot.com/2008/03/purge-of-dwg-takes-forever-solution.html * - *Riverbed and DWG 2007 file format workaroundhttp://designhelp4you.blogspot.com/2008/03/riverbed-and-dwg-2007-file-format.html * - *Vista File copy Errorhttp://designhelp4you.blogspot.com/2008/03/vista-file-copy-error-0x8007045d-or.html * - *Vista SP1 installationhttp://designhelp4you.blogspot.com/2008/03/vista-sp1-installation-problem-800704c8.html * * http://www.blogger.com/rearrange?blogID=7881756149398832347widgetType=LinkListwidgetId=LinkList11action=editWidget * *Auto CAD EBOOKS* - *AutoCAD 2005 For Dummieshttp://designhelp4you.blogspot.com/2008/03/autocad-2005-for-dummies.html * * http://www.blogger.com/rearrange?blogID=7881756149398832347widgetType=LinkListwidgetId=LinkList12action=editWidget * *Auto CADThe Basics Lessons* - *L-1 Using Co-ordinateshttp://designhelp4you.blogspot.com/2008/02/using-co-ordinates.html * * http://www.blogger.com/rearrange?blogID=7881756149398832347widgetType=LinkListwidgetId=LinkList9action=editWidget * *AutoCAD 2008' Category* - *Autodesk AutoCAD 2008http://designhelp4you.blogspot.com/2008/03/autodesk-autocad-2008httpwwwbloggercomi.html * - *Hip tip: Joining corners by using FILLEThttp://designhelp4you.blogspot.com/2008/03/hip-tip-joining-corners-by-using-fillet.html * * http://www.blogger.com/rearrange?blogID=7881756149398832347widgetType=LinkListwidgetId=LinkList10action=editWidget * *Auto CAD 2008 Lessons* - *Auto CAD Lesson1-10http://designhelp4you.blogspot.com/2008/03/topics-covered-in-this-lesson1-10.html * - *Auto CAD Lessons 1-11http://designhelp4you.blogspot.com/2008/03/topics-covered-in-this-lesson1-11.html * - *AutoCAD Lesson 1-1http://designhelp4you.blogspot.com/2008/01/xy-co-ordinate-system-lesson-1-1.html * - *AutoCAD Lesson 1-2http://designhelp4you.blogspot.com/2008/01/topics-covered-in-this-lesson1-2.html * - *AutoCAD Lesson 1-3http://designhelp4you.blogspot.com/2008/01/topics-covered-in-this-lesson1-3.html * - *AutoCAD Lesson 1-4http://designhelp4you.blogspot.com/2008/01/topics-covered-in-this-lesson1-4.html * - *AutoCAD Lesson 1-5http://designhelp4you.blogspot.com/2008/01/topics-covered-in-this-lesson1-5.html * - *AutoCAD Lesson 1-6http://designhelp4you.blogspot.com/2008/01/topics-covered-in-this-lesson1-6.html * - *AutoCAD Lesson 1-7http://designhelp4you.blogspot.com/2008/02/topics-covered-in-this-lesson-1-7.html * - *AutoCAD Lesson 1-8http://designhelp4you.blogspot.com/2008/02/topics-covered-in-this-lesson1-8.html * - *AutoCAD Lesson 1-9http://designhelp4you.blogspot.com/2008/03/topics-covered-in-this-lesson-direct.html * * http://www.blogger.com/rearrange?blogID=7881756149398832347widgetType=LinkListwidgetId=LinkList7action=editWidget * *AutoCad 2005 For Architects Training 1-10* - *Architectural Filmhttp://designhelp4you.blogspot.com/2007/12/architectural-film.html * - *Architectural Visualizationhttp://designhelp4you.blogspot.com/2007/12/architectural-visualization.html * - *Creating Presentation Drawingshttp://designhelp4you.blogspot.com/2007/12/creating-presentation-drawings.html * - *Drawing and Scale Ffactorhttp://designhelp4you.blogspot.com/2007/12/drawing-and-scale-ffactor.html * - *Externally
[symfony-users] Re: Lucene Integration
On Monday, March 31, 2008, Marco Schierhorn wrote: My first questions is, how Lucene connects those tables / foreign keys. For example if i search for the country Germany or the city Duesseldorf, does Lucene connect the foreign tables Countries or Cities with the Member Table and finds those people who are from Germany / Duesseldorf ?! sfLucene does not handle this explicitly (yet). You must create proxy methods to do this. Search the users group + symfony forum. There are a couple of examples there. My 2nd question is how could i setup different search options for every user? Bcs. a member has the option to ignore other member. So the other member shouldnt see the one which has ignored him in the network and in the search results. My first thought was to drop the Lucene search result into an array and then to delete the objects which shouldnt be shown to the member (like ignored user). Is there another possibilty with Lucene? Another thought was to create different index files for ignored member. Would this make sense? You can 'query' the Lucene index with different criteria. Check out the API for sfLuceneCriteria, which should let you restrict the results with one index. You will have to overload the searching action. Carl --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] I18n Modify Column Problem
Hi at all, i had a problem with the i18n feature, i'm using Propel 1.2 and Symfony 1.0.11. The thing is, i have a table users and users_i18n, the schema looks like users: _attributes: idMethod: native isI18n: true i18nTable: users_i18n id: type: INTEGER required: true autoIncrement: true primaryKey: true users_i18n: user_id: type: INTEGER required: true primaryKey: true default: foreignTable: users foreignReference: id onDelete: RESTRICT onUpdate: RESTRICT language: isCulture: true type: VARCHAR size: 7 required: true primaryKey: true default: well as you see, in the table users_i18n i've a primary with 2 fields (user_id, language), well the problem is when i want update a record from this table if i do $user = UserI18nPeer::retrieveByPk(1,'en'); $user-setLanguage('fr'); $user-save(); The SQL generated is UPDATE users_i18n SET LANGUAGE = 'fr' WHERE users_i18n.USER_ID=1 AND users_i18n.LANGUAGE='fr' that's wrong, cause the condition its not like should be, it should be WHERE users_i18n.USER_ID=1 AND users_i18n.LANGUAGE='en' I hope you understand Thanks Regards CZ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---