[symfony-users] Re: sfGuardAuth i18n

2010-11-26 Thread Veríssimo
After a centos reboot problem solved. Thanks. On 25 Nov, 14:21, Veríssimo jveriss...@gmail.com wrote: I have clear symfony cache, restart httpd service(to destroy session), and open a new firefox window: Now i get this in the debug toolbar: User Toggle details options:   auto_shutdown:

[symfony-users] Re: Manage the credentials of the actions and modules through a form

2010-11-26 Thread Richtermeister
Hey Javi, first, the credentials are in the security.yml, not view.yml, and secondly, the proper approach is to manage what credentials a user has rather than managing what credentials an action/module requires. So, the current approach of coding credentials into the system files and

[symfony-users] Mime type for zip file in Google Chrome

2010-11-26 Thread eliana m.
when I upload a zip file in my Symfony app with IE, the mime type of that zip file is application/x-zip-compressed. When I upload a zip file in Firefox, the mime type of that zip file is application/octet- stream and the mime type for zip file in chrome is application/zip. The mime type for zip

Re: [symfony-users] [Symfony 2] Custom validator with a boolean option?

2010-11-26 Thread Bernhard Schussek
2010/11/26 Gustavo Adrian comfortablynum...@gmail.com: Thanks for clarify this point. But then there's a problem with this too. I saw that validators check for null values like: if ( $value === null ) { return true; } But they don't check for empty values. That's because many

[symfony-users] Little doubt in validate forms' stage

2010-11-26 Thread ma89a2
I have two embed forms that show up on the page according to a checkbox's value is true or false. The fact is that I need just one of the embed forms to be submitted so I unset the unused embed form. Ok, it works well, but if I have any required field in this form that was not filled the form

Re: [symfony-users] [Symfony 2] Custom validator with a boolean option?

2010-11-26 Thread Gustavo Adrian
That's because many validators (f.i. Min) expect a non-string argument anyway. The other string arguments don't always accept empty values (like Regex, MinLength etc.) Is there any validator that should accept an empty string but does not? The Url constraint for instance. How could you make

Re: [symfony-users] [Symfony 2] Custom validator with a boolean option?

2010-11-26 Thread Bernhard Schussek
2010/11/26 Gustavo Adrian comfortablynum...@gmail.com: The Url constraint for instance. How could you make it optional? if you don't enter any value on the field, it would complain because the only way it returns true is if $value === null Ok, that's a bug. Can you file a ticket please? :)

[symfony-users] Re: Manage the credentials of the actions and modules through a form

2010-11-26 Thread pghoratiu
You should do the following: - design tables to store info about: modules/actions/user/permission - develop another security filter (that would replace the current security filter) that would use the new source for the credential data. gabriel On Nov 25, 9:02 pm, Javier Garcia

Re: [symfony-users] [Symfony 2] Custom validator with a boolean option?

2010-11-26 Thread Gustavo Adrian
Ok, that's a bug. Can you file a ticket please? :) Of course :) http://trac.symfony-project.org/ticket/9297 http://trac.symfony-project.org/ticket/9297 On Fri, Nov 26, 2010 at 4:22 PM, Bernhard Schussek bschus...@gmail.comwrote: 2010/11/26 Gustavo Adrian comfortablynum...@gmail.com: The

Re: [symfony-users] [Symfony 2] Custom validator with a boolean option?

2010-11-26 Thread Gustavo Adrian
Ok, I wanted to start my contribution with this little issue. It's a small fix so it's a great way to learn how to contribute. I'm not very familiarized with github, and I've been working with git for a few weeks. I've followed the steps shown on the docs that talks about contribution at: