[symfony-users] sfDynamicFormPlugin

2010-09-19 Thread juro
Hi, I am thinking of developing a plugin that enables an admin to create a form (without having to manipulate widget files) and to display the form on the frontend. Two questions: - Is there a plugin that does this already? - Does anyone need something like this? Warm regards juro -- If you

[symfony-users] Custom filter for admin generated sfGuardUser module

2010-06-27 Thread juro
. I have checked the $values and they are correct. Any ideas how to find out what is going wrong? juro -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony

[symfony-users] Extended Query using Doctrine

2010-04-17 Thread juro
Hi, I am creating an Event Management plugin and have a problem with hydrating my events for one day. My idea is to have a plgMasterEvent class that holds reaccurring events and an actual plgEvent class that holds actual events - as soon as someone is attending an event, a plgEvent instance is

[symfony-users] Re: Problem with model in Event Management Plugin

2009-11-11 Thread juro
this? On Nov 10, 10:41 pm, Nicolas Perriault nperria...@gmail.com wrote: On Tue, Nov 10, 2009 at 8:33 PM, juro fo...@juro.at wrote: Thank you for the tutorial, is the sfTaskExtraPlugin compatible with 1.3? Sure, I'm using it on a 1.3 powered project of mine with no pb :) ++ -- Nicolas

[symfony-users] Re: Problem with model in Event Management Plugin

2009-11-10 Thread juro
Is it possible to use an admin-generated module for the plugin? --~--~-~--~~~---~--~~ 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

[symfony-users] Re: Problem with model in Event Management Plugin

2009-11-10 Thread juro
a calendar (suggesting properties such as date, time, duration), as opposed to a framework event. Daniel On Nov 10, 5:45 am, Nicolas Perriault nperria...@gmail.com wrote: On Tue, Nov 10, 2009 at 11:58 AM, juro fo...@juro.at wrote: Is it possible to use an admin-generated module for the plugin

[symfony-users] Re: Problem with model in Event Management Plugin

2009-11-10 Thread juro
Thank you for the tutorial, is the sfTaskExtraPlugin compatible with 1.3? On Nov 10, 3:45 pm, Nicolas Perriault nperria...@gmail.com wrote: On Tue, Nov 10, 2009 at 11:58 AM, juro fo...@juro.at wrote: Is it possible to use an admin-generated module for the plugin? Sure, you have to follow

[symfony-users] Re: Problem with model in Event Management Plugin

2009-11-09 Thread juro
sfCalendar makes sense sfCalendarEvent doesn't sfDoctrineEventManagementPlugin sfDoctrineEMEvent.class sfDoctrineEMCalendar.class ?? On Nov 9, 9:56 pm, Nicolas Perriault nperria...@gmail.com wrote: On Mon, Nov 9, 2009 at 8:39 PM, juro fo...@juro.at wrote: sfEventManagementPlugin

[symfony-users] Problem with model in Event Management Plugin

2009-11-08 Thread juro
be an instance of Doctrine_Record. How do I debug this and can anyone help me please? juro --~--~-~--~~~---~--~~ 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

[symfony-users] Extending sfDoctrineGuard in 1.3

2009-11-04 Thread juro
be http://yourhost/backend_dev.php/sfGuardUser but now I get this error: The route sf_guard_user_collection does not exist. Has anyone hay success? juro --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group

[symfony-users] Re: Extending sfDoctrineGuard in 1.3

2009-11-04 Thread juro
. DoctrineGuard as basic as possible. 2009/11/4 juro fo...@juro.at Hi, I am trying to get this http://www.symfony-project.org/blog/2008/11/12/call-the-expert-custom... to work on Symfony 1.3 Everything works aas expected until I try to access http://yourhost/backend_dev.php

[symfony-users] Re: Extending sfDoctrineGuard in 1.3

2009-11-04 Thread juro
for profiles then work on linking the 2. Then you're building on something stable that you know works. On Wed, 2009-11-04 at 02:44 -0800, juro wrote: Thank you for the information. Unfortunately there is no way that I can use sfDoctrineGuard without being able to associate a profile with each user

[symfony-users] Re: Extending sfDoctrineGuard in 1.3

2009-11-04 Thread juro
Yes: all: .settings: enabled_modules:[default, sfGuardUser, sfGuardGroup, sfGuardPermission] On Nov 4, 12:45 pm, Simone Fumagalli simone.fumaga...@gmail.com wrote: I have figured out that the url should be http://yourhost/backend_dev.php/sfGuardUser but now I get this error:

[symfony-users] One Line Form Decorator

2009-06-30 Thread juro
. Thank you juro --~--~-~--~~~---~--~~ 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 symfony-users

[symfony-users] Doctrine Behaviour: Usertraceable ... how to create the relationships

2009-06-26 Thread juro
but not the relationships. Can anyone check why not? juro ?php /** * Doctrine Template that creates two fields created_by and updated_by * @author: Roland Jungwirth * @version: 0.9 */ class Doctrine_Template_Usertraceable extends Doctrine_Template { /* Array of Timestampable options * * @var string

[symfony-users] Re: Can a form post to a component ?

2009-06-25 Thread juro
Why did you manhandle my discussion for you question? How rude! On Jun 25, 2:51 am, Patrick Fong patr...@ddns.com.au wrote: Hi all, I've done a bit of searching but have not been able to dig up any information. Does anyone know if it is possible for form post data to be handled by a

[symfony-users] Handling embedded forms that are embedded

2009-06-25 Thread juro
the binding of the embedded MeasurementForms to the ExerciseForm or do I have to do everything in the TemplateForm's bind() method? Any comments are appreciated. juro --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony

[symfony-users] Handling embedded forms that are embedded

2009-06-24 Thread juro
everything in the TemplateForm's bind() method? Any comments are appreciated. juro --~--~-~--~~~---~--~~ 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

[symfony-users] Default values for widgets in admin-generated form

2009-06-18 Thread juro
' = 'Please insert a name')); } } Can anyone tell me, why the default value does not show in the admin- generated form? And - more importantly - how I can get a default value into the admin-generated form? juro --~--~-~--~~~---~--~~ You received this message

[symfony-users] Pulling EXIF data from a file

2009-02-17 Thread juro
Hi, is there a way to pull EXIF data from an image when uploading a file? juro --~--~-~--~~~---~--~~ 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

[symfony-users] Re: Multiple File Uploads

2009-02-16 Thread juro
I have tried that. $_POST has all the data (also the filenames) but $_FILES is empty. Any ideas, why? juro On Feb 16, 10:24 am, Lupu Alexandru-Emil gang.al...@gmail.com wrote: personally i would do a print_r($_POST); print_r($_FILES); die(); in the lowest level of your app ... (a filter

[symfony-users] Re: Multiple File Uploads

2009-02-16 Thread juro
So that I can iterate over all files that are uploaded. On Feb 16, 3:49 pm, Tom Boutell t...@punkave.com wrote: Why are you embedding a second form for this purpose at all? That strikes me as the oddest part of the code. Also looking at this code: $files-widgetSchema['file_' . $i] = new

[symfony-users] Re: Multiple File Uploads

2009-02-16 Thread juro
yes: ... form enctype=multipart/data method=post action=/admin_juro.php/ image/submit/action ... On Feb 16, 3:52 pm, Alexandru-Emil Lupu gang.al...@gmail.com wrote: the form is generated as enctype=multipart/form-data ? alecs On Mon, Feb 16, 2009 at 2:13 PM, juro fo...@juro.at wrote

[symfony-users] Re: Multiple File Uploads

2009-02-16 Thread juro
that into trac. juro On Feb 16, 4:39 pm, Tom Boutell t...@punkave.com wrote: This code: form enctype=multipart/data method=post action=/admin_juro.php/ image/submit/action Is incorrect. It should be multipart/form-data, not just multipart/data. -- Tom Boutell www.punkave.comwww.boutell.com

[symfony-users] Custom route for Object

2009-02-15 Thread juro
I have a problem with routing This is my (very simplified) model: Topten: columns: id: autoincrement, primary, etc name: string cat_id: integer relations: Category: local: cat_id foreign: id Category: columns: id: autoincrement, primary, etc name:

[symfony-users] Multiple File Uploads

2009-02-15 Thread juro
-setNameFormat('images[%s]'); } } In my action, all I do is echo out the $_FILES and the $request- getFiles($this-form-getName()) but both are null. I would like to put the resize functionality into the MultipleImageForm's bind method but again, $taintedFiles is empty. Any recommendations? juro

[symfony-users] Overwriting values in through class

2009-02-10 Thread juro
)) { $con = $this-getConnection(); } $this-object-unlink('Categories', array()); $values = $this-getValue('categories_list'); if (is_array($values)) { $this-object-link('Categories', $values); } } Any ideas how I can handle the rank field? juro

[symfony-users] Making sfGuardUsers soft-deletable

2009-02-10 Thread juro
Hi, I am using the sfDoctrineGuardPlugin and would like to make the users soft deletable. What is the best way to do this without loosing the change everytime I do a svn:externals update? juro --~--~-~--~~~---~--~~ You received this message because you

[symfony-users] Grouping Embedded Forms for use in generator.yml

2009-02-03 Thread juro
Hi, I am embedding a number of forms into a parent form. When using the generator.yml to style the form, I would like to be able to place this group wherever I need it. Any idea, how I can do this? juro --~--~-~--~~~---~--~~ You received this message because you

[symfony-users] Re: Grouping Embedded Forms for use in generator.yml

2009-02-03 Thread juro
Ahhh, couldn't see the forest due to all the trees. Works like a charm - thank you. juro On Feb 4, 1:58 am, Jonathan Wage jonw...@gmail.com wrote: Create a dummy sfForm and embed all the forms in to that form. That way you have them all grouped in to one embedded form. - Jon On Tue, Feb

[symfony-users] Unit-Tests: The default context does not exist.

2009-02-01 Thread juro
').'/fixtures'); When I run any test, I get the error message: The default context does not exist Does anyone know where this comes from? juro --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post

[symfony-users] Re: Unit-Tests: The default context does not exist.

2009-02-01 Thread juro
()) { $this-setCreatedBy($user); } $this-setUpdatedBy($user); parent::save(); } With this in place, which works great by the way, how can I unit test this class? juro On Feb 1, 2:04 pm, Thomas Rabaix thomas.rab...@gmail.com wrote: Hello, In one of your class you are doing a sfContext

[symfony-users] Embedding the same form multiple times

2009-01-22 Thread juro
this? juro --~--~-~--~~~---~--~~ 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 symfony-users+unsubscr

[symfony-users] Re: Embedding the same form multiple times

2009-01-22 Thread juro
Hmm, not sure which foreign key you are referring to... On Jan 23, 1:20 am, jukea jkea...@gmail.com wrote: just a quick idea : maybe you forgot to unset the foreign key in the MineForm::configuration method ? Julien On Jan 22, 5:52 pm, juro fo...@juro.at wrote: Hi, I am trying

[symfony-users] Unit testing an extended save method using sfContext

2009-01-08 Thread juro
::save(); } to store the user's id, when the object is saved. When I test this, I get an error that there is no sfContext - which I understand, as this is not run in the brower. How can I run unit tests on this anyway? juro --~--~-~--~~~---~--~~ You received

[symfony-users] Re: Doctrine_Validator_Exception: weird case

2009-01-07 Thread juro
No, that didn't work - I wouldn't know why it should either On Jan 5, 6:47 pm, fredlab frederic.beauf...@free.fr wrote: Hi, I ran into similar problems with 1.2.2 dev recently and came up with that patch :http://trac.symfony-project.org/ticket/5523 Could you try it and tell us if it

[symfony-users] Re: Doctrine_Validator_Exception: weird case

2009-01-07 Thread juro
Ok, I have debugged this a bit more and now my mind is totally wasted As you recall, this is my method: public function end() { if (!($this-getInvoice()-exists())) { $invoice = new Invoice(); $invoice-setName($this-getCustomer()-getFullname());

[symfony-users] DoctrinePlugin: how to find whether there is a relation.

2009-01-05 Thread juro
inside a Car instance, what is the best practice way to find out, whether there is a Driver related to it. I used to to if ($this-getDriver() != '') { echo 'this car has no driver'; } But I am sure Doctrine has a nicer way to do this ... juro

[symfony-users] Re: Doctrine_Validator_Exception: weird case

2009-01-04 Thread juro
This is Doctrine that ships with the svn current 1.2.2dev Symfony. The constant VERSION in Doctrine.php is 1.0.5 - hope this helps as I am desperate :( juro On Jan 4, 9:11 pm, Jonathan Wage jonw...@gmail.com wrote: Is this in Doctrine 1.1? - Jon On Sun, Jan 4, 2009 at 8:01 AM, juro fo

[symfony-users] DoctrinePlugin: getRoute-getObject does not work

2009-01-03 Thread juro
with parameters array ( 'module' = 'news', 'action' = 'show', 'title_slug' = 'batman-begins-today',) SELECT * FROM article a Any idea how I can solve this? juro --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[symfony-users] Re: Doctrine_Validator_Exception

2008-12-21 Thread juro
Jon, any chance on an answer, as to where you want me to report this? Also, what information do you need? juro --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email

[symfony-users] Re: Doctrine_Validator_Exception

2008-12-21 Thread juro
Not sure - how can I find that out? On Dec 21, 9:40 pm, Jonathan Wage jonw...@gmail.com wrote: In the Doctrine trac. I think this is a regression in the 1.1 branch. That is where the problem occurs right? - Jon --~--~-~--~~~---~--~~ You received this

[symfony-users] Doctrine_Validator_Exception

2008-12-19 Thread juro
and is set at a later stage. Any ideas? juro --~--~-~--~~~---~--~~ 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

[symfony-users] Re: Doctrine_Validator_Exception

2008-12-19 Thread juro
? juro On Dec 20, 2:24 am, Jonathan Wage jonw...@gmail.com wrote: Can you create a ticket for this? Thanks, Jon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email

[symfony-users] Re: admin generator: changing field type in 1.2

2008-12-18 Thread juro
should help you. juro On Dec 18, 12:59 am, Frank Stelzer d...@bleedingmoon.de wrote: Hello, I have two questions about changing the field type in the 1.2 admin   generator: 1. I am used ( 1.2) to configure read only timestamp fields in the   admin generator like this: ---      edit

[symfony-users] New Admin Generator: custom object_actions

2008-12-14 Thread juro
. But it should only show the posts of the one author. I already know how to create the link, but here are my two questions: 1. How do I filter the post list? 2. Can I define a custom icon? juro --~--~-~--~~~---~--~~ You received this message because you are subscribed

[symfony-users] New Routing: sf_format

2008-12-14 Thread juro
In a module, I have a function/view that builds a csv, which I want to take out of the routings normal behaviour, i.e. I don't want .html to be added to resulting filename. How can I set the sf_format for one module's function only? --~--~-~--~~~---~--~~ You

[symfony-users] New Forms: Dynamic Default Value

2008-12-14 Thread juro
how to define a default value in the AppointmentForm.class.php, but how can I do this dynamically? juro --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony

[symfony-users] Re: New Routing: sf_format

2008-12-14 Thread juro
Hi Nicolas, thank you, that worked. How can I configure Symfony not to include the layout.php? juro On Dec 15, 7:43 am, Nicolas Perriault nperria...@gmail.com wrote: On Mon, Dec 15, 2008 at 6:37 AM, juro fo...@juro.at wrote: In a module, I have a function/view that builds a csv, which I

[symfony-users] Re: New Forms: Dynamic Default Value

2008-12-14 Thread juro
And to add to the question. Is it possible, if a user only enters the hour and the minute, that the system can convert that before saving the values as a timestamp (which would throw a Doctrine_Validator_Exception)? --~--~-~--~~~---~--~~ You received this message

[symfony-users] Re: New Routing: sf_format

2008-12-14 Thread juro
. Take a look at the book and the API. juro wrote: Hi Nicolas, thank you, that worked. How can I configure Symfony not to include the layout.php? juro On Dec 15, 7:43 am, Nicolas Perriault nperria...@gmail.com wrote: On Mon, Dec 15, 2008 at 6:37 AM, juro fo...@juro.at wrote

[symfony-users] Re: Routing Issues

2008-12-09 Thread juro
If I would have to guess, I would say no :) This is what I did: $symfony doctrine:generate-module frontend access Access then I renamed the module access to caccess $symfony generate:module frontend access So, I would assume that I don't have to create one Also, the routing.yml looks like

[symfony-users] Re: Injecting values in the new forms

2008-12-09 Thread juro
Ok, Symfony seems to keep it persistent. Your code works well, except that the functions $this-setCreatedBy() expects an object as parameter. $user-getId() is an integer. So either $this-set('created_by', $user-getId()); or $this-setCreatedBy($user); works. Thank you!

[symfony-users] Re: Injecting values in the new forms

2008-12-08 Thread juro
I hear you regarding bad practice - would be good to get some information from one of the head dev honchos on that. Can Symfony keep the sessions apart, i.e. does Symfony know who is invoking the save() method? On Dec 5, 11:11 pm, Ant Cunningham [EMAIL PROTECTED] wrote: Save it in the

[symfony-users] Injecting values in the new forms

2008-12-05 Thread juro
the frontend but need to be populated. Using the old forms, I pulled the currently logged on user's id in the executeUpdate action and populated the necessary fields. How do I do this using the new forms? juro --~--~-~--~~~---~--~~ You received this message because you

[symfony-users] 1.2 Admi generator: Filter a date value

2008-12-05 Thread juro
Hi, I have a created_at field and I want to filter all entries where that created_at date lies in between two values. Any ideas how to do this? juro --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users

[symfony-users] Re: Injecting values in the new forms

2008-12-05 Thread juro
Yes, definitely the more elegant version. The question being, how do I get the user's id that invokes the save() method inside the object's instance itself? Any idea? juro On Dec 5, 4:36 pm, Ant Cunningham [EMAIL PROTECTED] wrote: You could do it this way but similar to the conversation about

[symfony-users] Re: Can forms be built dynamically with symfony 1.1?

2008-11-29 Thread juro
Hi, Have a look at the sfWidgetFormPropelChoiceMany widget. That should give you exactly what you need. juro --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email

[symfony-users] Re: Can forms be built dynamically with symfony 1.1?

2008-11-29 Thread juro
Hi Olivier, Yes, this widget is part of the new forms and therefore part of 1.1. You can look at the documentation here: http://www.symfony-project.org/book/forms/1_1/en/04-Propel-Integration juro On Nov 30, 2:35 am, olivierb [EMAIL PROTECTED] wrote: Is the sfWidgetFormPropelChoiceMany widget

[symfony-users] Re: New Forms: when are fields populated

2008-11-11 Thread juro
On Nov 10, 4:25 am, Jonathan Wage [EMAIL PROTECTED] wrote: The values are populated when you instantiate the form initially like so: $form = new sfForm($initialValues); and when you do: $form-bind($tainedValues); So, combining your two answers, the $form-bind($taintedValues) passes the

[symfony-users] Re: New Forms: when are fields populated

2008-11-11 Thread juro
Ah, ok yes, I have that method ;) Any take on the doClean question? --~--~-~--~~~---~--~~ 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