[symfony-users] Re: Picture field?

2007-11-11 Thread Michael Nolan

Not used it myself but this plugin might help provide some of the
functionality you're looking for:

http://trac.symfony-project.com/wiki/sfPropelFileStoragePlugin

Mike

On Nov 10, 11:35 am, "Sid Bachtiar" <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Is there a standard/easy way (e.g.: plugin may be?) to create a picture field?
>
> For example lets say I have a user table and I want to add a picture
> field and let user to be able to change their picture.
>
> Cheers


--~--~-~--~~~---~--~~
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: sfLucene categories and indexer questions

2007-11-11 Thread Carl Vondrick

On Sunday, November 11, 2007, gestadieu wrote:
> 1. PDF index: I know it is not directly possible but I am working on a
> dms solution and I am planning to obviously index also files (mainly
> pdf), If I use a command line tool to get the content of the pdf in
> text I guess there is no problem to index it in lucene? Do you see any
> easy way to do that?
Hey,
I just pushed the first beta of sfLucene, which has better support for this. 
Note, however, that the configuration file format has changed and you have to 
manually update. You can register a custom type of indexer with the system 
now, such as a PDF indexer and it will run along with the others.  Check out 
the last part of the documentation for more on this.

I would love to ship a PDF indexer with sfLucene, but I can't figure out a 
portable way of doing it.  If you have any ideas, let me know!  If you want 
to create patch, even better.

> 2. separation of search by category: I am interested (when search by
> 'All categories') to list separatly each result sets by category, is
> there any way to do it? I must admit that I did not check in detail
> your code to identify how it works for categories. The only solution I
> can see for now is to make one search per category to get them
> separatly.
sfLucene already has an interface switch with the pull-down to select which 
category to search under.  Or are you looking for something different?

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] .::: Guide for Men, Teens and Women :::.

2007-11-11 Thread adaline.napleshsj

.::: Guide for Men, Teens and Women :::.

Solve All your problems here. Get the best advice and tips..

http://sextipsforall.blogspot.com

http://sextipsforall.blogspot.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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Client Side Caching

2007-11-11 Thread Marek

You can check what headers are returned by static content that is
cached on client and mimic it in your action.

Also remember to check for If-Modified-Since header and return just
304 responce if the original image did not change.

If you use session, session adds headers not to cache the content.
Either turn off session for the action or override those headers.

You can also use "Super Fast Cache": in your action save the file
under web root where it appears to be (e.g. web/images/resized/
1024x768/) and modify web/.htaccess serve the static images
instead, if they exist. The "we check if the .html version is here
(caching)" section does the same thing with .html pages, so just
modify it for your needs.

-- Marek

On 8. Nov, 18:43 h., Andreas Stephan <[EMAIL PROTECTED]>
wrote:
> Hi all,
>
> I am delivering my images through symfony and a special route which
> allows me to resize the images if i change url parameters.
> Unfortunately I cannot get client side caching to work with these
> images using http headers.
> I managed to get it working setting etag to "on" in settings.yml, but
> several resources on the web recommend not to use it and suggest to
> user a last-modified header instead. However I cannot get this to
> work. Has anyone managed to deliver images through symfony and make
> client side caching work properly using http headers?
>
> Thanks,
> Andreas


--~--~-~--~~~---~--~~
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: sfSimpleCMSPlugin problems

2007-11-11 Thread Marek

In my installation "all" enviroment key does not work, I had to
specify settings for each enviroment separately. So try:

prod:
  sfSimpleCMS:
use_l10n:   true
localizations:  [en, fr, it]
default_culture:en
dev:
  sfSimpleCMS:
use_l10n:   true
localizations:  [en, fr, it]
default_culture:en

I haven't had time to confirm it with onyone else, but if this
workaround works for you, I can create a ticket.

-- Marek

On 10. Nov, 15:40 h., "Marco C." <[EMAIL PROTECTED]> wrote:
> Hi all,
> i have some probels setting up sfSimpleCMSPlugin.
> First of all, i would like to localize my application. so i've modified 
> myapp/config/app.yml:all: sfSimpleCMS: use_l10n: true localizations: [en, fr, 
> it] default_culture: enI've enabled i18n in myapp/config/settings.yml:all: 
> .settings: l18n: on
> Then i put XLIFF transaltions (http://trac.symfony-project.com/ticket/2195) 
> in myapp/modules/sfSimpleCMS/i18n and myapp/modules/sfSimpleCMSAdmin/i18n
> I have two strange problems:There are no italian transaltions even if i 
> configuredefault_culture: it In the "Edition Tools" are specified some 
> localizations (english, french, spanish) that aren't specified in my app.yml 
> (english, french, italian). So there isn't the italian localization, but if i 
> create new page, only the localization slot are translated correctly in 
> italian.What do i wrong?
> Thanks
> Marco


--~--~-~--~~~---~--~~
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: sfLucene categories and indexer questions

2007-11-11 Thread gestadieu

Hi!

thanks for the quick answer. Ok I solved both issues:
1. I actually simply forgot to clear the cache...

2. yep I was mistaken by the 'category' in the wiki instead of
'categories', it now works fine.

This is a great plugin again. I hope some other plugin could integrate
out-of-the-box sfLucene to ease search as you mention in the wiki
page.

If you still need my files for debugging purpose let me know I can
send it to you, although they do not seems to be buggy anymore for me.

By the way, I still have a few questions (you did not really think I
would stop there, did you :-)

1. PDF index: I know it is not directly possible but I am working on a
dms solution and I am planning to obviously index also files (mainly
pdf), If I use a command line tool to get the content of the pdf in
text I guess there is no problem to index it in lucene? Do you see any
easy way to do that?

2. separation of search by category: I am interested (when search by
'All categories') to list separatly each result sets by category, is
there any way to do it? I must admit that I did not check in detail
your code to identify how it works for categories. The only solution I
can see for now is to make one search per category to get them
separatly.

thx again
Gerald

On Nov 11, 4:57 pm, Carl Vondrick <[EMAIL PROTECTED]> wrote:
> On Sunday, November 11, 2007, gestadieu wrote:
> > 1. Custom Indexer: But my question is: how should I name the file and where
>
> to put it?
> You can call it whatever you wish and you should probably place in your
> project /lib directory.  Did you remember to clear your cache and register it
> with the plugin's yml file?
>
> > 2. Categories
> > I think I understood what is the use of categories and I am interested
> > to use it (at least to be able to search within only one type of
> > propel object).
>
> I've been getting some reports of buggy category support.  Could you send me
> your search.yml and cache/sfLucene_search_categories.php?
>
> 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] Re: Symfony - Propel - Creole and the Postgres Array Datatype

2007-11-11 Thread RobRoyAus

Hi,

I am also looking for a way to use additional Postgre data types
(specifically PostGIS geo types). See
http://groups.google.com/group/symfony-users/browse_thread/thread/f2b69acf9c64f3f/215dfe527764d42d?hl=en&lnk=gst&q=gis

Rob

On Oct 29, 5:37 pm, cdecarlo <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I would like to use Symfony as the framework for my next project
> however some tables in my planned database schema will use the array
> datatype.  I've searched for information on making this happen and
> I've found out that:
>
>  - Propel doesn't support Postgres arrays
>  - Creole does
>
> I'm getting hung up at the very start since I've got to use Propel to
> either create my database from the schema.yml file or vice versa.
> Since Propel doesn't support the array datatype, it balks at both.
> Can someone please help me get past this point?
>
> Thanks,
>
> Colin


--~--~-~--~~~---~--~~
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: Client Side Caching

2007-11-11 Thread Andreas Stephan

Quick update: After chatting with pookey and posting some code, I
tried setting the HTTP-header to 1.1 by modifying the sfWebResponse
Class. Didn't solve the problem either though. If I find a solution, I
will post it here.

Thanks for all the answers, Andy

On Nov 9, 1:17 pm, "Ian P. Christian" <[EMAIL PROTECTED]> wrote:
> Andreas Stephan wrote:
> > I have tried setting expires as well - no luck with that. Some of the
> > images change quite frequently, so just setting a "dumb" expires
> > header wont do me good. But I guess I could try finding out if the
> > file has changed recently and then set the expires header accordingly.
> > I will look into that again if I switch to more than one server.
>
> Can yo ushow your action code please?
>
> I suspect I might know what this is.
>
> --
>
> Ian P. Christian ~ pookey.co.uk


--~--~-~--~~~---~--~~
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: Propel difference

2007-11-11 Thread Thierry

Its rather rough right now :)
But yes I'll share it.
To make my code look a little better, does anyone know how to access
the databases.yml file, from within a pake task?





On Nov 10, 5:42 pm, drmikecrowe <[EMAIL PROTECTED]> wrote:
> Could you share that pake task?  That'd be pretty cool.
>
> On Nov 10, 9:57 am, Thierry <[EMAIL PROTECTED]> wrote:
>
> > I like the approach of dumping the mysql data. It is the probably the
> > only solutions, considering propel.
> > Now have a little pake task:
> > propel-build-all-save-mysql
>
> > which does mysqldump, propel-build-all, load dump in that order
> > It's still quite raw, but working nicely.
>
> > Mysqldiff seems to be working wonders as well :)


--~--~-~--~~~---~--~~
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: sfLucene categories and indexer questions

2007-11-11 Thread Carl Vondrick

On Sunday, November 11, 2007, gestadieu wrote:
> I tried also to have some variable (%xxx%) categories like in the
> documentation but what ever I do, I cannot see any categories in the
> 'lucene-about myapp', neither a select box to pick one category in the
> default view.
Hey,
There was a mistake in the README.  It said you had to add a "category" key to 
your search.yml, but in fact you need to add a "categories" key!

It should look like:

models:
  Blog:
fields:
  title: text
  post: text
categories: [%category%, Blog]

It's been fixed in SVN and on the wiki.

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] Re: sfLucene categories and indexer questions

2007-11-11 Thread Carl Vondrick

On Sunday, November 11, 2007, gestadieu wrote:
> 1. Custom Indexer: But my question is: how should I name the file and where 
to put it?
You can call it whatever you wish and you should probably place in your 
project /lib directory.  Did you remember to clear your cache and register it 
with the plugin's yml file?

> 2. Categories
> I think I understood what is the use of categories and I am interested
> to use it (at least to be able to search within only one type of
> propel object).
I've been getting some reports of buggy category support.  Could you send me 
your search.yml and cache/sfLucene_search_categories.php?

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] Re: Help: problem with accessing request parameter

2007-11-11 Thread Kiril Angov

$sf_request->getRequestParameter('propertyId')


Sid Bachtiar wrote:
> My URL is: 
> http://localhost/project1/web/admin_dev.php/myPicture/list/propertyId/3
>
> But I can't get any value when I call
> $sf_request->getParameter('propertyId') from the template
>
> Any idea?
>
> >
>
>   


--~--~-~--~~~---~--~~
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] sfLucene categories and indexer questions

2007-11-11 Thread gestadieu

Hi all,

first let me tell you how good is this plugin, thumb up to the author!
It just works well and brings a true search engine for symfony project
as well as simplifying so much the use of Zend Lucene.

But of course if I am writing here it is not just to say that :-( I
have 2 questions that I could not solve (I am using the 0.0.7 aka
James Bond version ;-)

1. Custom Indexer
as most of my propel objects use something like 'is_published' in
their data model I wrote some custom indexer to handle the
'shouldIndex()' method, this is very simple. But my question is: how
should I name the file and where to put it?
I found that naming mycustomIndexer.class.php and copying it in the
plugins/sfLucene/lib works but obviously it does not sounds good.
Whenever I try to put the indexer in any lib/ folders lib/, apps/myapp/
lib, or even apps/myapp/modules/sfLucene/lib/ it does not find it
anymore. Any suggestions?

2. Categories
I think I understood what is the use of categories and I am interested
to use it (at least to be able to search within only one type of
propel object).
I tried to have first something like
Blog:
...
  category: [Blog]

Article:
...
  category: [Article]
I tried also to have some variable (%xxx%) categories like in the
documentation but what ever I do, I cannot see any categories in the
'lucene-about myapp', neither a select box to pick one category in the
default view.
One more thing: I am not sure I understand the need of the
'categories' key in my model if the only thing I need is to make sure
that I have a getter getCategory()?
Am I missing something here?


--~--~-~--~~~---~--~~
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] Help: problem with accessing request parameter

2007-11-11 Thread Sid Bachtiar

My URL is: 
http://localhost/project1/web/admin_dev.php/myPicture/list/propertyId/3

But I can't get any value when I call
$sf_request->getParameter('propertyId') from the template

Any idea?

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---