[symfony-users] override countries translation

2009-01-04 Thread Damien Lepage
Hi,

I would like to override countries translation provided by Symfony in the
file:
symfony/lib/i18n/data/fr.dat

I don't like the accents on the first upper case letter which break the
natural alphabetical order.
For example I would prefer "Etats-Unis" than "États-Unis".

Does anyone know how to override this file in my project ?
Thanks

Damien

--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Doctrine_Validator_Exception: weird case

2009-01-04 Thread José Leonardo Diaz Ordoñez
Try watching your object before the save() call and look if there's
something missing or any strange. I've found this tool very usefull for
doctrine debuggin http://redotheoffice.com/?p=65

2009/1/4 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"  wrote:
> > Is this in Doctrine 1.1?
> >
> > - Jon
> >
> > On Sun, Jan 4, 2009 at 8:01 AM, juro  wrote:
> >
> > > Oh and this worked with Symfony 1.1, although I think that it is a
> > > Doctrine problem and not a Symfony one - but then again, what do I
> > > know 
> >
> > --
> > Jonathan H. Wage
> > Open Source Software Developer &
> Evangelisthttp://www.jwage.comhttp://www.doctrine-project.orghttp://
> www.symfony-project.org
> >
>


-- 

José Leonardo Diaz Ordoñez
Ingeniero en Electrónica y Telecomunicaciones
Énfasis en Ingeniería Telemática.
Universidad del Cauca, Popayán -Colombia
2007

--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Symfony on shared host

2009-01-04 Thread José Leonardo Diaz Ordoñez
I have an error like that in my local server, it was an autoload problem in
my case I had two version of the symfony framework in my lib/vendor folder
(1.2 and 1.2.2Dev)

If you have access to the console try to execute "symfony cc" or "symfony
YOUR_ORM:build-all "  It gave me some real strange errors, if any error
appear again publish so I can tell if is the same it gave me.
2009/1/4 Lee Bolding 

>
> cache and log need to be 777 *recursively*
>
> chmod -R 777 cache
> chmod -R 777 log
>
> That should fix it :)
>
> On 4 Jan 2009, at 19:02, Johannes Frandsen wrote:
>
> >
> > I get this error when I try to run my symfony project on a shared
> > host:
> >
> > Fatal error: Uncaught exception 'sfCacheException' with message
> > 'Failed to make cache directory "/var/www/html/greenoak.dk/cache/
> > frontend/dev/config" while generating cache for configuration file
> > "config/config_handlers.yml".' in /var/www/html/greenoak.dk/lib/
> > symfony/config/sfConfigCache.class.php:337 Stack trace: #0 /var/www/
> > html/greenoak.dk/lib/symfony/config/sfConfigCache.class.php(107)
> :
> > sfConfigCache->writeCacheFile('config/config_h...', '/var/www/html/
> > g...', ' > config/sfConfigCache.class.php(194): sfConfigCache-
> >> callHandler('config/config_h...', Array, '/var/www/html/g...') #2 /
> > var/www/html/greenoak.dk/lib/symfony/config/
> > sfConfigCache.class.php(276): sfConfigCache->checkConfig('config/
> > config_h...') #3 /var/www/html/greenoak.dk/lib/symfony/config/
> > sfConfigCache.class.php(54): sfConfigCache->loadConfigHandlers() #4 /
> > var/www/html/greenoak.dk/lib/symfony/config/
> > sfConfigCache.class.php(194): sfConfigCache->callHandler('config/
> > settings...', Array, '/var/www/html/g. in /var/www/html/greenoak.dk/
> > lib/symfony/config/sfConfigCache.class.php on line 337
> >
> > Safemode is on  but I have copied all the files from the pear
> > installation (so my installation resemble what a symfony freeze would
> > do ), so to the best of my knowledge this should not be the problem.
> >
> > Both cache and log have 777 file permission
> >
> > When I look i the cache folder I can see that some of the folder
> > structure is created but no files
> >
> > Any help appreciated...
> >
> > Im running php 5.2.6 on the shared host
> >
> > Joe
> >
> >
> >
> >
> >
> >
> > >
>
>
> >
>


-- 

José Leonardo Diaz Ordoñez
Ingeniero en Electrónica y Telecomunicaciones
Énfasis en Ingeniería Telemática.
Universidad del Cauca, Popayán -Colombia
2007

--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How would I define other mime categories other than 'web_images' for file upload?

2009-01-04 Thread David

Found the solution.  Posting for others who stumble upon this thread:

http://www.symfony-project.org/forum/index.php/m/69108/

On Jan 4, 6:01 pm, David  wrote:
> I also am in the exact same position.  How would I add the mime type
> functionality for mp3?
>
> On Dec 16 2008, 7:40 pm, olivierb  wrote:
>
> > I'm following the jobeet tutorial for symfony 1.2 and I'm also
> > developing an application on the side.
>
> > I need to have file upload that allows web images, audio files, pdfs.
>
> > I know that by default, the only mime_categories defined is
> > 'web_images'. How would I define another one to include all my
> > required mime types?
>
> > This is what the code from the jobeet tutorial looks like:
>
> > $this->validatorSchema['logo'] = new sfValidatorFile(array(
> >   'required'   => false,
> >   'path'       => sfConfig::get('sf_upload_dir').'/jobs',
> >   'mime_types' => 'web_images',
> > ));
>
> > Bonus question: How would I define a maximum size of 10MB? I think
> > that by default, uploads are limited to 2MB. Is this a configuration
> > setting somewhere?
>
> > Thanks for your help!
> > 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 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How would I define other mime categories other than 'web_images' for file upload?

2009-01-04 Thread David

I also am in the exact same position.  How would I add the mime type
functionality for mp3?

On Dec 16 2008, 7:40 pm, olivierb  wrote:
> I'm following the jobeet tutorial for symfony 1.2 and I'm also
> developing an application on the side.
>
> I need to have file upload that allows web images, audio files, pdfs.
>
> I know that by default, the only mime_categories defined is
> 'web_images'. How would I define another one to include all my
> required mime types?
>
> This is what the code from the jobeet tutorial looks like:
>
> $this->validatorSchema['logo'] = new sfValidatorFile(array(
>   'required'   => false,
>   'path'       => sfConfig::get('sf_upload_dir').'/jobs',
>   'mime_types' => 'web_images',
> ));
>
> Bonus question: How would I define a maximum size of 10MB? I think
> that by default, uploads are limited to 2MB. Is this a configuration
> setting somewhere?
>
> Thanks for your help!
> 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 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Symfony on shared host

2009-01-04 Thread Lee Bolding

cache and log need to be 777 *recursively*

chmod -R 777 cache
chmod -R 777 log

That should fix it :)

On 4 Jan 2009, at 19:02, Johannes Frandsen wrote:

>
> I get this error when I try to run my symfony project on a shared  
> host:
>
> Fatal error: Uncaught exception 'sfCacheException' with message
> 'Failed to make cache directory "/var/www/html/greenoak.dk/cache/
> frontend/dev/config" while generating cache for configuration file
> "config/config_handlers.yml".' in /var/www/html/greenoak.dk/lib/
> symfony/config/sfConfigCache.class.php:337 Stack trace: #0 /var/www/
> html/greenoak.dk/lib/symfony/config/sfConfigCache.class.php(107):
> sfConfigCache->writeCacheFile('config/config_h...', '/var/www/html/
> g...', ' config/sfConfigCache.class.php(194): sfConfigCache-
>> callHandler('config/config_h...', Array, '/var/www/html/g...') #2 /
> var/www/html/greenoak.dk/lib/symfony/config/
> sfConfigCache.class.php(276): sfConfigCache->checkConfig('config/
> config_h...') #3 /var/www/html/greenoak.dk/lib/symfony/config/
> sfConfigCache.class.php(54): sfConfigCache->loadConfigHandlers() #4 /
> var/www/html/greenoak.dk/lib/symfony/config/
> sfConfigCache.class.php(194): sfConfigCache->callHandler('config/
> settings...', Array, '/var/www/html/g. in /var/www/html/greenoak.dk/
> lib/symfony/config/sfConfigCache.class.php on line 337
>
> Safemode is on  but I have copied all the files from the pear
> installation (so my installation resemble what a symfony freeze would
> do ), so to the best of my knowledge this should not be the problem.
>
> Both cache and log have 777 file permission
>
> When I look i the cache folder I can see that some of the folder
> structure is created but no files
>
> Any help appreciated...
>
> Im running php 5.2.6 on the shared host
>
> Joe
>
>
>
>
>
>
> >


--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[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"  wrote:
> Is this in Doctrine 1.1?
>
> - Jon
>
> On Sun, Jan 4, 2009 at 8:01 AM, juro  wrote:
>
> > Oh and this worked with Symfony 1.1, although I think that it is a
> > Doctrine problem and not a Symfony one - but then again, what do I
> > know 
>
> --
> Jonathan H. Wage
> Open Source Software Developer & 
> Evangelisthttp://www.jwage.comhttp://www.doctrine-project.orghttp://www.symfony-project.org
--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



Re : [symfony-users] Re: Help : How do you extend the admin generator (doctrine one in sf1.2) ?

2009-01-04 Thread Loïc Vernet
Yes, that's a problem with the "copy" method of the theme, because if there are 
modifications of the admin gen in the next symfony version you won't get them. 
It would be nice to easly see all the modifications done on the admin theme 
between 2 versions...

++ COil






De : fredlab 
À : symfony users 
Envoyé le : Dimanche, 4 Janvier 2009, 19h44mn 37s
Objet : [symfony-users] Re: Help : How do you extend the admin generator 
(doctrine one in  sf1.2) ?


I spent almost 2 days on this and I found out the solution :

=> when I copied the data/generator folder, I copied the one from sf
1.2.1 that does not implement the getTableMethod in the generated
configuration class.

Other modification were probably added. Thus I took the one from 1.2
dev branch. And Magic, everything is working well.

Hope  this kind of mistakes can help others. I can keep on creating my
admin own generator plugin.

Regards,

Frédéric


  
--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Doctrine_Validator_Exception: weird case

2009-01-04 Thread Jonathan Wage
Is this in Doctrine 1.1?

- Jon

On Sun, Jan 4, 2009 at 8:01 AM, juro  wrote:

>
> Oh and this worked with Symfony 1.1, although I think that it is a
> Doctrine problem and not a Symfony one - but then again, what do I
> know 
> >
>


-- 
Jonathan H. Wage
Open Source Software Developer & Evangelist
http://www.jwage.com
http://www.doctrine-project.org
http://www.symfony-project.org

--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Symfony on shared host

2009-01-04 Thread Johannes Frandsen

I get this error when I try to run my symfony project on a shared host:

Fatal error: Uncaught exception 'sfCacheException' with message  
'Failed to make cache directory "/var/www/html/greenoak.dk/cache/ 
frontend/dev/config" while generating cache for configuration file  
"config/config_handlers.yml".' in /var/www/html/greenoak.dk/lib/ 
symfony/config/sfConfigCache.class.php:337 Stack trace: #0 /var/www/ 
html/greenoak.dk/lib/symfony/config/sfConfigCache.class.php(107):  
sfConfigCache->writeCacheFile('config/config_h...', '/var/www/html/ 
g...', 'callHandler('config/config_h...', Array, '/var/www/html/g...') #2 / 
var/www/html/greenoak.dk/lib/symfony/config/ 
sfConfigCache.class.php(276): sfConfigCache->checkConfig('config/ 
config_h...') #3 /var/www/html/greenoak.dk/lib/symfony/config/ 
sfConfigCache.class.php(54): sfConfigCache->loadConfigHandlers() #4 / 
var/www/html/greenoak.dk/lib/symfony/config/ 
sfConfigCache.class.php(194): sfConfigCache->callHandler('config/ 
settings...', Array, '/var/www/html/g. in /var/www/html/greenoak.dk/ 
lib/symfony/config/sfConfigCache.class.php on line 337

Safemode is on  but I have copied all the files from the pear  
installation (so my installation resemble what a symfony freeze would  
do ), so to the best of my knowledge this should not be the problem.

Both cache and log have 777 file permission

When I look i the cache folder I can see that some of the folder  
structure is created but no files

Any help appreciated...

Im running php 5.2.6 on the shared host

Joe






--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Help : How do you extend the admin generator (doctrine one in sf1.2) ?

2009-01-04 Thread fredlab

I spent almost 2 days on this and I found out the solution :

=> when I copied the data/generator folder, I copied the one from sf
1.2.1 that does not implement the getTableMethod in the generated
configuration class.

Other modification were probably added. Thus I took the one from 1.2
dev branch. And Magic, everything is working well.

Hope  this kind of mistakes can help others. I can keep on creating my
admin own generator plugin.

Regards,

Frédéric
--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] pkAdminQuickCreatePlugin

2009-01-04 Thread Tom Boutell

Many Symfony admin generator forms involve making associations between
the object being edited and related objects. For instance, when adding
an event to a calendar, you may need to associate that event with a DJ
or a band. Symfony's admin generator can provide pulldowns to select
these, but what if they don't already exist? pkAdminQuickCreatePlugin
makes it easy to implement "quick create" buttons that step aside to
another admin generator module, create an object, and then bring the
user back to complete the rest of the original form with all of their
work intact. pkAdminQuickCreatePlugin is designed to leverage your
existing work with the admin generator and quickly add this feature
without the need for a major overhaul of your code.

http://www.symfony-project.org/plugins/pkAdminQuickCreatePlugin

Enjoy!

-- 
Tom Boutell

www.punkave.com
www.boutell.com

--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Doctrine_Validator_Exception: weird case

2009-01-04 Thread juro

Oh and this worked with Symfony 1.1, although I think that it is a
Doctrine problem and not a Symfony one - but then again, what do I
know 
--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---