[symfony-users] is sfMediaLibraryPlugin compatible with Symfony 1.2 (Propel)?

2009-10-13 Thread Sid Bachtiar
Hi, Does anyone know if sfMediaLibraryPlugin works with Symfony 1.2 (Propel)? It's flagged as Symfony 1.1, but 1.1 and 1.2 are quite similar. Kind regards, Sid --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[symfony-users] Re: Extend form class with I18n

2009-10-13 Thread HAUSa
Would be a good option, but I need more forms than only these two. * Sign up * Change profile * Change sign in settings * Uploads new photo All of these three forms use just a few fields of the class. On 13 okt, 07:36, Richtermeister nex...@gmail.com wrote: I would not make separate forms,

[symfony-users] Re: Help with sfWidgetFormInputSWFUploadPlugin and admin generator

2009-10-13 Thread Alexandre SALOME
Actually, it uses the same URL for sending the files. So it post values to document/edit URL. You have to create a new action dedicated to this action, and set it's URL in the options of your widget (in your form). Copy/paste the code of your form configuration for more help. Alexandre.

[symfony-users] Re: __() in Peer and Form

2009-10-13 Thread Alexandru-Emil Lupu
in the form you don't need to use it ... i have made an sfi18nfromExtractorplugin that takes your errors by instantiating your class, and creates a dictionary using those files ... you might wanna try it ... about the peer class, i might say that you are doing something wrong ... On the other way

[symfony-users] Re: Get only language

2009-10-13 Thread Alexandru-Emil Lupu
then use just en culture ... not en_US. Alecs On Tue, Oct 13, 2009 at 6:32 AM, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: The following function exists: $this-getUser()-getCulture(); Now the output is for example en_US. But is there also a way to only get the language

[symfony-users] Re: is sfMediaLibraryPlugin compatible with Symfony 1.2 (Propel)?

2009-10-13 Thread Alexandru-Emil Lupu
Sid, AFAIK you can use it ... you might have some small problems, but i doubt it . And yes ... is working with propel ... It is not ORM related .. browse this: http://trac.symfony-project.org/browser/plugins/sfMediaLibraryPlugin Alecs On Tue, Oct 13, 2009 at 9:04 AM, Sid Bachtiar

[symfony-users] Re: Get only language

2009-10-13 Thread Jose R. Prieto
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 en = Language US = country / zone en_US, en_GB, en_AU Spanish is a better example :) es_ES (spanish in Spain) es_AR (spanish in Argentina) An special example is galician, a regional language that is spoken in Galician, a region (Autonomic

[symfony-users] Re: Propel route problem

2009-10-13 Thread Alexandre SALOME
Hu ! Add in requirements : sf_method: [get, post] By default, i think only get is accepted, so it skip the route. This should fix the problem 2009/10/13 HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com With url_for('@user_activate', $user); I got an error, but without the @ it works.

[symfony-users] Re: is sfMediaLibraryPlugin compatible with Symfony 1.2 (Propel)?

2009-10-13 Thread Sid Bachtiar
I just tried sfMediaLibraryPlugin, could not get it to work! For anyone else reading this, use sfAssetLibraryPlugin instead if you are using Symfony 1.2 (Propel) with TinyMCE 3. Apply the following patch to get rid of the Javascript error:

[symfony-users] Re: Propel route problem

2009-10-13 Thread HAUSa
That's it. Thank you man! On 13 okt, 10:29, Alexandre SALOME alexandre.sal...@gmail.com wrote: Hu ! Add in requirements : sf_method: [get, post] By default, i think only get is accepted, so it skip the route. This should fix the problem 2009/10/13 HAUSa

[symfony-users] Re: About embed forms

2009-10-13 Thread Francisco José Núñez Rivera
Can you show me the schema? Maybe something its incorrect in the relations. 2009/10/10 Dennis gear...@sbcglobal.net Let's say you have a schema of: 'User' 'MovingBoxForBooks' 'Book'. 'User'-1-to-many-'MovingBoxForBooks' 'MovingBoxForBooks'-1-to-many-'Book' 'User' is a parent of

[symfony-users] entity-relationship editors?

2009-10-13 Thread cosmy
Hi all. Generally i use Argouml for designing my uml model diagrams. I was wondering if does exist an editor that generate yml code for my symfony (doctrine) projects, or sql code for my mysql-server.. Thank you in advance --~--~-~--~~~---~--~~ You received this

[symfony-users] sfGuard passwords get corrupted with doctrine:data-dump/load

2009-10-13 Thread Pablo Godel
I am using sfDoctrineGuard plugin. When I run doctrine:data-dump and then data-load the passwords which are encripted by default with sha1 get corrupted. The passwords are ok in data/fixtures/data.yml but when running data-load I see the insert queries with a new value. Is this a bug? Is there

[symfony-users] Re: sfGuard passwords get corrupted with doctrine:data-dump/load

2009-10-13 Thread Gábor Fási
The data-dump task exports the raw values found in the database, ie. the encrypted ones. While doing the data-load, the plugin's overwritten setPassword() setter is called, that expect to get a plaintext value, so it encodes it. Your passwords get corrupted because of being encrypted again. On

[symfony-users] Re: sfGuard passwords get corrupted with doctrine:data-dump/load

2009-10-13 Thread Pablo Godel
That's what I thought is happening, but since the data-dump is raw that, shouldn't data-load load the raw data ? is there any existing method to load the raw dumped data directly to the DB ? thanks for your reply. On Tue, Oct 13, 2009 at 10:19 AM, Gábor Fási maerl...@gmail.com wrote: The

[symfony-users] Re: sfGuard passwords get corrupted with doctrine:data-dump/load

2009-10-13 Thread david
The password is hashed when it's set - expecting a plaintext password rather than a hashed one. There was a post a while ago about this issue - you need to created a method on the model that skips the hashing process. On Tue, 13 Oct 2009 16:35:07 +0200, Pablo Godel pgo...@gmail.com wrote:

[symfony-users] Re: sfGuard passwords get corrupted with doctrine:data-dump/load

2009-10-13 Thread Gábor Fási
By default, data-load loads the raw data from the yml, but sfGuardPlugin has overwritten setPassword() to make sure passwords are stored encrypted. As doctrine:* tasks use doctrine (and therefore the overwritten setPassword()) the only way to load the raw data is to go around doctrine completely.

[symfony-users] Re: sfGuard passwords get corrupted with doctrine:data-dump/load

2009-10-13 Thread david
Checkout: http://forum.symfony-project.org/index.php/m/83831/ for more info On Tue, 13 Oct 2009 16:40:25 +0200, david da...@inspiredthinking.co.uk wrote: The password is hashed when it's set - expecting a plaintext password rather than a hashed one. There was a post a while ago about this

[symfony-users] Re: sfGuard passwords get corrupted with doctrine:data-dump/load

2009-10-13 Thread Pablo Godel
shouldn't this be applied to the plugin code? On Tue, Oct 13, 2009 at 11:10 AM, david da...@inspiredthinking.co.ukwrote: Checkout: http://forum.symfony-project.org/index.php/m/83831/ for more info On Tue, 13 Oct 2009 16:40:25 +0200, david da...@inspiredthinking.co.uk wrote: The

[symfony-users] Re: sfGuard passwords get corrupted with doctrine:data-dump/load

2009-10-13 Thread david
There appears to be another work-around: http://trac.symfony-project.org/ticket/6196 On Tue, 13 Oct 2009 17:15:08 +0200, Pablo Godel pgo...@gmail.com wrote: shouldn't this be applied to the plugin code? On Tue, Oct 13, 2009 at 11:10 AM, david da...@inspiredthinking.co.ukwrote:

[symfony-users] Re: Outputing dynamic image fail

2009-10-13 Thread Russen
Yes, the magic string is definitely: return $this-renderText('/myimage/url.jpg'); or return $this-renderText($imagecontent); The use of that line will make Symfony forget about rendering any template, just like return sfView::NONE; would, but that the latter flushes any output as well. If

[symfony-users] Is posible to embed lists in the same way forms are embeded (embedForm)?

2009-10-13 Thread tirengarfio
hi, is posible to embed lists in the same way forms are embeded (embedForm)? I would like to embed the profile list in the user list for the backend. Bye --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony

[symfony-users] Re: sfGuard passwords get corrupted with doctrine:data-dump/load

2009-10-13 Thread Pablo Godel
I tried this one briefly and did not fix the problem. The password keeps changing. The other patch looks like it would be the fix but when doing the data-load I get an exception and nothing gets loaded. Need to look further when I get some time. On Tue, Oct 13, 2009 at 11:40 AM, david

[symfony-users] Re: entity-relationship editors?

2009-10-13 Thread Casey
There is an experimental plugin that will convert Clay files into schema files. I've not used it, but I have used clay, which as an eclipse plugin I believe will generate sql for the design database. There is also DBDesigner, which I haven't used. There are also seems to be a symfony plugin for

[symfony-users] Re: entity-relationship editors?

2009-10-13 Thread Juan Pablo Romero Bernal
Hi, Generally i use Argouml for designing my uml model diagrams. I was wondering if does exist an editor that generate yml code for my symfony (doctrine) projects, or sql code for my mysql-server.. I've used MySQL workbench [1], with great results. You can export your model to sql or make

[symfony-users] Re: entity-relationship editors?

2009-10-13 Thread Lukas Kahwe Smith
On 13.10.2009, at 22:58, Juan Pablo Romero Bernal wrote: Hi, Generally i use Argouml for designing my uml model diagrams. I was wondering if does exist an editor that generate yml code for my symfony (doctrine) projects, or sql code for my mysql-server.. I've used MySQL workbench [1],

[symfony-users] Re: entity-relationship editors?

2009-10-13 Thread Juan Pablo Romero Bernal
Hi, what is the difference to the doctrine plugin? i guess the one you linked above is propel only? Yes, the plugin works only for propel. http://code.google.com/p/mysql-workbench-doctrine-plugin/ Great !. I didn't know. I'll review it. Bye, -- Juan Pablo Romero Bernal Blog:

[symfony-users] Re: entity-relationship editors?

2009-10-13 Thread Pablo Godel
I've been using Mysql Workbench with great success when using Propel. I recently switched to Doctrine and run into some issues with my work flow. The relations in the schema file after converting from a DB is not exactly what Doctrine likes. I have not tried the yml plugin for Mysql Workbench yet,

[symfony-users] Change default/homepage route dynamically?

2009-10-13 Thread tom cowin
I've been searching for way to simply change the default route (module/ action) that is followed from within an action. I've come across a few posts that describe how to add routes, but I've not been able to make it work. Is there a straightforward way to accomplish this (in 1.2.8+)? many thanks

[symfony-users] Realize this UML model (job interviews system) in symfony

2009-10-13 Thread Cosimo Zecchi
Hi all, i'm trying to realize this model using symfony. (http:// img96.imageshack.us/img96/3193/diagrammadiclasse2.png or something like that..).. it should be a flexible job-interview system.. so I need an application for making (by an admin) and answering (the users) questionaries. Maybe