[symfony-users] Re: sfLucene pager

2008-08-21 Thread Carl Vondrick

sfLucene does not work correctly with output escaping.  Your best
option is to override the template in your module.

On Aug 21, 12:56 pm, pghoratiu <[EMAIL PROTECTED]> wrote:
> Hi!
>
> The result pager in sfLucene with (Symfony 1.0.18-PRE) is not working
> correctly.
>
> http://svn.symfony-project.com/plugins/sfLucenePlugin/branches/1.0/mo...
>
> 
> $params = $sf_request->getParameterHolder()->getAll()
> 
>       echo __('Prev') ?>
> 
>
> array_merge() does not work because $params is not an array but a
> collection of objects ( sfOutputEscaperArrayDecorator) and no URL is
> generated because of this.
>
> Is this a known issue, what is the proposed solution?
>
> Regards,
>
>     gabriel
--~--~-~--~~~---~--~~
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 indexing problems

2008-08-21 Thread Carl Vondrick

sfLucene only rebuilds if you call the rebuild task.  Rebuilding can
be very intensive, so it is not done by default.

Carl

On Aug 20, 11:28 pm, "alessandro cinelli"
<[EMAIL PROTECTED]> wrote:
> On Thu, Aug 21, 2008 at 5:39 AM, Carl Vondrick <
>
> [EMAIL PROTECTED]> wrote:
>
> > sfLucene should not create a "a new index" every time.  An index is
> > like a database.  So, this is likely the problem.
>
> ok, but what happens if i manually delete the index directory?
> I thought that sfLucene was supposed to rebuild the entire index, isn't it?
>
> > Can you post your directory layout on the production server?
>
> now i can't i'll do it tonight.
>
> thanks again for your quick reply
>
> cirpo
--~--~-~--~~~---~--~~
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 indexing problems

2008-08-20 Thread Carl Vondrick

sfLucene should not create a "a new index" every time.  An index is
like a database.  So, this is likely the problem.

Can you post your directory layout on the production server?

On Aug 20, 4:29 pm, "alessandro cinelli"
<[EMAIL PROTECTED]> wrote:
> Hi,
> i use sfLucene, last version for symfony 1.0,  to index and search users
> using the sfGuardUser model.
> In my local server, my own machine, everything works fine but this is not
> happennig in the production server.
> I have to say that the production server hasn't the default symfony
> directory configuration: everything but the web folder contents are in
> another folder, called project.
> The strange thing is that when a new user register himself in the site,
> sfLucene creates, as supposed to do, a new index, but when i search a user,
> the only valid result i can obtain
> is the last user registered!!
> How can it be possible?Why sfLucene index only the last registered user?
>
> thanks in advance
>
> cirpo
--~--~-~--~~~---~--~~
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: Error doing svn update for plugins/sfPropelSearchPlugin

2008-08-19 Thread Carl Vondrick

The new path is now:
http://trac.symfony-project.org/browser/plugins/sfSearchPlugin/trunk/propel

On Aug 19, 10:57 am, David at Artefactual <[EMAIL PROTECTED]>
wrote:
> Hi all,
>
> I thought I'd post this to help anybody else that is getting this
> error when doing an 'svn up' against the sfPropelSearchPlugin.
>
> When I ran 'svn up' today on our application, I got the following
> message while trying to update the external sfPropelSearchPlugin
> repository:
>
>   Fetching external item into 'plugins/sfPropelSearchPlugin'
>   svn: REPORT request failed on '/!svn/vcc/default'
>   svn: Target path does not exist
>
> I turns out that the plugin has been dropped from svn as of 
> r10927:http://trac.symfony-project.org/changeset/10927
>
> The full list of dropped plugins are:
> * plugins/sfCachedSearchPlugin  (deleted)
> * plugins/sfPropelSearchPlugin (deleted)
> * plugins/sfSolrPlugin (deleted)
> * plugins/sfSymfonySearchPlugin
>
> I deleted my working copy of the directory and removed the
> svn:extrnals call to sfPropelSearchPlugin, and everything updated
> fine.
>
> Cheers,
> David Juhasz
--~--~-~--~~~---~--~~
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: sfLucenePlugin Dead Slow

2008-07-02 Thread Carl Vondrick

Thanks for your research on this James.  Hopefully the PHP team will fix 
these memory issues soon!

On Thu, Jul 03, 2008 at 12:08:01AM -0400, James wrote:
> 
> We had the same problems, my co-worker managed to find the solution  
> today. The problem stems from bad garbage collection in the current  
> version of php and versions less than that.  I asked questions on the  
> propel board and was pointed at about 10 different articles all  
> pointing to that as the problem.  Php is suppose to have a fix in the  
> next version 5.x version, but that's not expected for a few months.
> 
> Our solution is a custom destruct method we had all the Models that  
> were being indexed extend from this custom class, all the problems we  
> had went away, including our indexing of 1.4M records from the command  
> line.  We are indexing now and averaging 15MB of memory used for each  
> index.  before at this point it climbed up to 1GB (which I had set the  
> server too to see if it would just keep going).  We had problems with  
> indexing reviews, when a new review was added when the db contained  
> the 1.4M records, smaller sets of the data 5000 records worked ok.   
> Just lots of memory issues all around.  Hope the code helps.
> 
> James
> 
> abstract classYourBaseObject extends BaseObject
> {
>  public function __destruct()
>  {
>  foreach ($this as $index => $value)
>  {
>  if (is_object($this->$index))
>  {
>  if (method_exists($this->$index, "__destruct"))
>  {
>  $this->$index->__destruct();
>  }
>  else if (get_class($this->$index) == "Criteria")
>  {
>  $this->$index->clear();
>  }
>  }
>  unset($this->$index);
>  }
>  }
> }
> 
> 
> 
> On Jun 30, 2008, at 6:01 PM, Carl Vondrick wrote:
> 
> >
> > On Mon, Jun 30, 2008 at 02:39:48PM -0700, Cristiano wrote:
> >> I installed the sfLucenePlugin and added the Propel behaviours as
> >> described in the manual. Everything works (I can create an index on
> >> the command line, and then search) but when I use actions to create
> >> new objects, the on-the-fly indexing goes dead slow and times out.
> >> It's really weird because building a new index from the command line
> >> on the 10 records goes extremely fast.
> >
> > Can you provide more information? Can you give me a reproduceable test
> > case? What are your system specs? Are you using the production
> > environment or dev?
> >
> > 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: sfLucenePlugin Dead Slow

2008-06-30 Thread Carl Vondrick

On Mon, Jun 30, 2008 at 04:31:33PM -0700, Cristiano wrote:
> 
> On Jul 1, 1:29 am, Cristiano <[EMAIL PROTECTED]> wrote:
> > On Jul 1, 12:01 am, Carl Vondrick <[EMAIL PROTECTED]>
> > wrote:
> >
> > > On Mon, Jun 30, 2008 at 02:39:48PM -0700, Cristiano wrote:
> > > > I installed the sfLucenePlugin and added the Propel behaviours as
> > > > described in the manual. Everything works (I can create an index on
> > > > the command line, and then search) but when I use actions to create
> > > > new objects, the on-the-fly indexing goes dead slow and times out.
> > > > It's really weird because building a new index from the command line
> > > > on the 10 records goes extremely fast.
> >
> > > Can you provide more information? Can you give me a reproduceable test
> > > case? What are your system specs? Are you using the production
> > > environment or dev?
> >
> > > Carl
> >
> > I just did the same setup in 2 projects I have, and get the same
> > annoying results. It just starts the process and than hangs. I am
> > running it on a Macbook using MAMP. Haven't had time to test it on a
> > different system yet. If I set my php timeout to a high value, it
> > eventually works, but it's just dead slow.
> 
> it seems that every time save() is called, the system takes ages to
> update the index.

Can you profile it (using xdebug) and send the cache file?  

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: sfLucenePlugin Dead Slow

2008-06-30 Thread Carl Vondrick

On Mon, Jun 30, 2008 at 02:39:48PM -0700, Cristiano wrote:
> I installed the sfLucenePlugin and added the Propel behaviours as
> described in the manual. Everything works (I can create an index on
> the command line, and then search) but when I use actions to create
> new objects, the on-the-fly indexing goes dead slow and times out.
> It's really weird because building a new index from the command line
> on the 10 records goes extremely fast.

Can you provide more information? Can you give me a reproduceable test 
case? What are your system specs? Are you using the production 
environment or dev?

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 1.1, as a transition release..."

2008-06-30 Thread Carl Vondrick

On Mon, Jun 30, 2008 at 08:46:38AM +0200, Andreas Hucks wrote:
> Is it worth converting my code now, because 1.2 will only add 
> functionality like a new Admin Generator, or should I wait for 1.2?

symfony 1.2 will likely build on symfony 1.1 and not remove much.

If you upgrade after 1.2 is out, you will just be effectively upgrading 
to 1.1 and then 1.2 in one step.  

I recommend upgrading to 1.1 now and then 1.2 once its out.  The 
transition from 1.0 --> 1.1 is bigger than 1.1 --> 1.2.

Good luck,
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 is sbeing slow.

2008-06-29 Thread Carl Vondrick

On Thu, Jun 26, 2008 at 11:26:29PM -0400, James wrote:
> 1)   We have 1.4 million charity records in a table.  When I run  
> symfony lucene-rebuild-index  via cronjob it gets to about 633000  
> records and stops indexing, and I am not sure how to debug this?  Any  
> thoughts?

The rebuild task is not designed to be used in a cron job because of 
this reason.  While sfLucene does its best to keep memory usage to a 
minimum, it does take a lot of resources.

Use the Propel behavior.  The Propel behavior allows you to update your 
index on the fly.  After each model is updated, it is saved to the 
index, which eliminates this issue.

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: Having sfSearchPlugin work...

2008-06-28 Thread Carl Vondrick

On Tue, Jun 24, 2008 at 07:57:29AM -0700, C�dric Sadai wrote:
> I'm trying to set up a search engine basic functionnality for a 1.1
> project, and chose the news plugin (I know, it's alpha..).

Hey,
Firstly, sorry for my late response.  I was on vacation the last week 
and did not have access to a computer.

Glad you are trying sfSearch out.  As you know, it's still (pre-)alpha 
software, so I can't recommend it for any sort of production right now.

> I want it to scan a model "Article". For that purpose, I have put in
> my ->configure():
> 
>   $this->setEngine(new 
> xfLuceneEngine(sfConfig::get('sf_data_dir') . '/
> index/myIndex'));
> 
>   $propelIdentifier = new xfPropelIdentifier('Article');
>   $articleService = new xfService($propelIdentifier);
>   $articleService->addBuilder(new xfPropelBuilder(array(
>   new xfField('title', xfField::TEXT))
>   ));
> 
>   $articleService->addRetort(new xfRetortField);
>   $articleService->addRetort(new 
> xfRetortRoute('content/index?title=
> $title$'));
> 
>   $this->getServiceRegistry()->register($articleService);
> 
> Two questions:
> 
> A) When I try to populate the index, I have this error:
> "No connection params set for propel". I've tried everything in my
> config file, in the original batch script, in the original populate
> method, but I can locate the problem.

sfSearch uses a hack to get this to work, which seems to be failing for 
you.  Are you setting up your database in the project level 
config/databases.yml?  If you set it up in the application level 
databases.yml, you will experience this problem.

> B) What about I18n? For that purpose I wanted to create an index per
> language, and then make a group.
> 
> I wanted to add a criteria when setting my index, like
> $c = new Criteria();
> $c->add(ArticleI18nPeer::CULTURE, 'fr');
> $propelIdentifier->setDiscoverCriteria($c);
> $propelIdentifier->setPeerSelectMethod('doSelectWithI18n');
> 
> Am I right?

This is probably the best way to implement i18n at this moment.  I am
working towards tiny refactorings to get better i18n support in at this 
time.  After all the trouble with i18n in the original sfLucenePlugin, I 
am going to make a concentrated effort of getting i18n to work as 
smoothly as possible this time around.

But, I can tell you that each culture/language will get its own index 
and then will be grouped together by a... group.

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 and Lucene questions

2008-06-18 Thread Carl Vondrick

On Wed, Jun 18, 2008 at 05:54:09AM -0700, pghoratiu wrote:
> 1. Search for properties of an item - like the color of a car, engine
> size. How well the search engine works in this case?

sfLucene/Zend_Search_Lucene can do this.

> 2. Is it possible to combine the search provided by Lucene with other
> filtering/criterias that can be implemented on the database level.
> From what I could tell this is not possible, Lucene works only on
> indexed data.

Not easily.

> 3. What other options are to have it work as a separate search service
> (on another machine to avoid the overload on the server running the
> application)? I was looking into the Solr project but I don't think
> this is available with any of the Symfony plugins available. Any other
> ways to separate the search engine functionality from the PHP
> processing on the website?

sfLucene cannot do this (or maybe it can, but I have never tried). 

The follow-up search plugin for symfony 1.1 called sfSearch will 
eventually able to do this, however.

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: sfConfig : Configuration not persistent ??

2008-06-04 Thread Carl Vondrick

On Wed, Jun 04, 2008 at 07:48:55AM -0700, Shinkan wrote:
> I would like to make these parameters values PERSISTENT for all the
> app, until I clear the cache so the parameters can take their original
> app.yml values.

Are you sure these values should not go in some sort of database?

You must write to the YAML file and clear the cache to make the 
values persist.

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: indexing sfSimpleForum by sfLucene plugin

2008-06-04 Thread Carl Vondrick

Hi,
I have never used sfSimpleForum, however...

1) did you try putting it config.php as earlier suggested?

2) check to make sure that Propel behaviors are enabled in 
sfSimpleForum (ie, don't use the bundled models).

Carl

On Wed, Jun 04, 2008 at 06:54:55PM -0600, Mohammad Ali Safari wrote:
> I still don't get a solution to this problem.
> 
> I trace it and it shows that
> sfLucenePropelBehavior::getInitializer()->setupModel('sfSimpleForumPost');
> 
> is called.
> But the model class sfSimpleForumPost does not have any method called
> saveIndex; that means these methods are not registered for it.
> 
> What could be wrong?
> 
> --Mohammad
> 
> > 

--~--~-~--~~~---~--~~
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] Propel 1.3 on Windows

2008-06-02 Thread Carl Vondrick

Hello,
If you are having trouble getting Propel 1.3 installed on symfony
1.1 running Windows per the instructions on the symfony blog:

 
http://www.symfony-project.org/blog/2008/05/30/how-do-i-use-propel-1-3-in-symfony-1-1

Then please respond to this email.  If you are able to get Propel 
1.3 installed on Windows, then please also respond.

Thanks,

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: snippetsEmu snippets for symfony

2008-05-24 Thread Carl Vondrick

On Sat, May 24, 2008 at 02:16:09PM -0700, Eno wrote:
> On May 23, 12:48 pm, Tom Haskins-Vaughan <[EMAIL PROTECTED]>
> wrote:
> > I am experimenting with vim at the moment - I really don't want this to
> > be yet another editor war :) - and I was wondering if anyone had come
> > across some symfony snippets for snippetsEmu. Of if anyone was
> > interested in creating some snippets.
> Actually would be nice to get symfony code-completion (of core sf
> classes) in vim.
> Are snippets a similar idea?

Try ctags with vim.  Last time I tried it worked 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: Exceptions and redirect in actions

2008-05-15 Thread Carl Vondrick

On Thu, May 15, 2008 at 07:49:14AM -0700, gunnarlium wrote:
> I guess there's a good explanation for why forward/redirect throws an
> exception. Care to provide a two-sentence briefing?

It interrupts the program flow, so you can do things like this:

 do_something();

 $this->forward404If(test_if_ok());

 do_something_more();

This way do_something_more() never executes if the action is 
forwarded.  If symfony doesn't interrupt, then do_something_more() 
will still execute even though it will never be used.

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: Exceptions and redirect in actions

2008-05-15 Thread Carl Vondrick

On Thu, May 15, 2008 at 04:33:51PM +0200, Gunnar Lium wrote:
> When executing this code, the redirect works fine, but both action_ok and
> action_error are set. This means that after redirecting, the code in the
> catch-block is executed. Is this the expected behavior? It seems a bit odd to
> me...

->redirect() and ->forward() both throw an sfStopException no matter 
what.  You must catch those and throw them again.

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: sfDoctrineLucenePlugin and sfZendFrameworkBridge

2008-05-08 Thread Carl Vondrick

On Thu, May 08, 2008 at 08:53:00AM -0700, gimler wrote:
> i use the sfDoctrineLucenePlugin and now i wil use other components
> from the zend framework.

Are you using the Doctrine branch for sfLucene?

--~--~-~--~~~---~--~~
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: Are tasks real replacement for batch scripts

2008-05-04 Thread Carl Vondrick

On Sat, May 03, 2008 at 06:11:06PM -0700, Wicked wrote:
> I'm currently writing a robust unit-of-work (don't want to use the
> 'task' in another meaning here) execution scheduler daemon, which
> takes some units-of-work from the db and passes them to invoked
> workers. The workers are currently supposed to be just CLI scripts
> that are run by a 'background' system('... &') call.

It sounds like a task is exactly what you need. You execute any task 
from your unit-of-work as:

  $task = new WhateverTask($dispatcher, new sfFormatter);
  $task->run($arguments, $options);

With tasks, you don't need to do any CLI calls. 

Carl
 
> From the point of view of speed, tasks seem killing for me. It takes
> about 4 seconds for log:clear to complete on my PC (athl xp 3200+ /
> 1gb ram / hdd sata 500gb) which makes the symfony tasks unusable as
> workers in my case. The batch scripts would fit much more because they
> tend to not perform a ton of work that tasks usually do. Also batch
> scripts can use full-scale caching, etc. But in the UPGRADE doc in the
> symfony 1.1 it's said that the batch scripts are deprecated now. So
> it's a dilemma for me :)
> 
> So what am I supposed to do? I don't believe I'll be able to to
> optimize the tasks sub-framework in such major extent.

--~--~-~--~~~---~--~~
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: Announce: New sfSyncClusterPlugin Available

2008-05-02 Thread Carl Vondrick

On Fri, May 02, 2008 at 04:22:00PM -0700, John Singleton wrote:
> The sfSyncClusterPlugin introduces a symfony "sync-cluster task." The  
> symfony sync-cluster task is intended as a replacement for the symfony  
> sync task.  

Very cool!  Would be neat to refactor/improve the bundled sync task
in a future symfony release.


--~--~-~--~~~---~--~~
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 - addrange and timestamp, list all

2008-05-02 Thread Carl Vondrick

On Thu, May 01, 2008 at 02:31:20AM -0700, gimler wrote:
> 1. Is there a better way to get all entries?
> $query = new sfLuceneCriteria($this->getLuceneInstance());
> $query->add('*');

sfLucene isn't designed to return all results (as Zend_Search_Lucene
does not support an elegant way of returning results).  If you must,
the method you use is OK, but I would recommend just querying the
database.

> 2. I will filter on field created_at with input_date_range_tag and
> addRange. I think the problem is that created_at is not
> numeric(2008-05-01 09:40:59) on a timestamp field?

Zend_Search_Lucene does not natively understand date formats.  You
must use unix timestamps.  To do this, create a proxy method in your
models to return the unix timestamp and then search on this.

Be sure to rebuild your index after everything change to search.yml.

--~--~-~--~~~---~--~~
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: Threaded Lists, Multi level menu, something like that

2008-04-18 Thread Carl Vondrick

On Friday, April 18, 2008, CX wrote:
> I user CakePHP framework and in that framework you can set a table
> with a field called parent_id and the framework has a method on his
> core classes that return you an array with a children key with the
> data related.
Symfony does this automatically.

http://www.symfony-project.org/book/1_0/08-Inside-the-Model-Layer#Retrieving 
Related Records

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 accent insensitive search

2008-04-12 Thread Carl Vondrick

On Saturday, April 12, 2008, SNake! wrote:
> But I found that it hardly returns result when the search query has
> accent characters!

When using accented characters, it is important to use the utf8 analyzer, 
otherwise searching will be unpredictable. 

Many people have problems with accent characters in sfLucene, but I am unable 
to reproduce these errors in my limited tests.  If you find a way a problem, 
do create a patch and send it to me.

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 - how to non re-index propel object temporally?

2008-04-05 Thread Carl Vondrick

On Wednesday, April 02, 2008, Nicolas Perriault wrote:
> Yes, as of r7866, you can use sfLucenePropelBehavior::setLock(true) to
> disable the behavior, and sfLucenePropelBehavior::setLock(false) to
> enable it again when you're done.

FYI, this feature is now included in version 0.1.6 (pushed today).

--~--~-~--~~~---~--~~
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: Lucene Integration

2008-03-31 Thread Carl Vondrick

On Monday, March 31, 2008, Marco Schierhorn wrote:
> My first questions is, how Lucene connects those tables / foreign keys.
> For example if i search for the country "Germany" or the city
> "Duesseldorf", does Lucene connect the foreign tables Countries or
> Cities with the Member Table and finds those people who are from
> Germany / Duesseldorf ?!

sfLucene does not handle this explicitly (yet).  You must create proxy methods 
to do this.  Search the users group + symfony forum.  There are a couple of 
examples there.

> My 2nd question is how could i setup different search options for every
> user? Bcs. a member has the option to "ignore" other member. So the
> other member shouldnt see the one which has ignored him in the network
> and in the search results.
> My first thought was to drop the Lucene search result into an array and
> then to delete the objects which shouldnt be shown to the member (like
> ignored user). Is there another possibilty with Lucene?
> Another thought was to create different index files for ignored member.
> Would this make sense?
You can 'query' the Lucene index with different criteria.  Check out the API 
for sfLuceneCriteria, which should let you restrict the results with one 
index.  You will have to overload the searching action.

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: Updating Production Databases.

2008-03-10 Thread Carl Vondrick

On Monday, March 10, 2008, James wrote:
> I am trying to figure out if symfony provides a mechanism for updating  
> modified database schema without destroying the existing data in the  
> production database.  If I add/remove a column from a table, or alter  
> a default  is there a way for symfony to build the differences into an  
> sql table?  Or is this something that we have to manually manage?

This is generally called a migration. For Propel, check out: 
http://trac.symfony-project.com/wiki/sfPropelMigrationsLightPlugin

Doctrine I believe has migration support built in.

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: sfLucenePlugin for one-to-many relationship indexing

2008-03-08 Thread Carl Vondrick

On Saturday, March 08, 2008, SNake! wrote:
> Could it be done by return the field as array and declare that field
> as keyword , like:
I am working on an elegant way to do this.  Eventually the plugin will resolve 
the foreign relationships automatically. So, if you have a 1:m::book:author, 
the plugin will create a subdocument for each author and link it to the book.

But, I have to make some bigger changes before I can implement this.  

> Or I have to do a customized indexer for it in sfLucenePlugin ?
You can create a new method, ->getAuthorIdsAsString(), which implodes the 
response from ->getAuthorIds().  This is how I currently accomplish your 
problem.  But, a custom indexer would also work.

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: sfLucenePlugin for one-to-many relationship indexing

2008-03-08 Thread Carl Vondrick

On Saturday, March 08, 2008, SNake! wrote:
> Actually I am using Luke to check my index, I found it seems to index
> the field without the number (in the case using text type).
>
> And then I try to give the field like "[1],[2],[10]" as keyword type.
> I try to query as  authorIDs:"\[1\]" but return no result

Make sure you are using a number analyzer.  By default, Zend_Search_Lucene 
(and thus sfLucene) does not index numbers.  

--~--~-~--~~~---~--~~
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: sfLucenePlugin for one-to-many relationship indexing

2008-03-08 Thread Carl Vondrick

Also, check out: http://www.nabble.com/Lucene-and-n:m-td12695579.html

On Saturday, March 08, 2008, wissl wrote:
> So indexing works so far (what you can tell), but your search does not
> return the results you want? Or are you not sure about the correct
> indexing process itself?
>
> What looks a little bit strange to me is that you index the field
> "authorIDs" as a keyword, but your query searches for tokenized
> values. Perhaps try to change the field type to text or adapt your
> query for testing purpose (if the field is indexed correctly) to
> "authorIDs:1,10,30".
>
> To check, what exactly is written to the index I suggest using Luke
> (http://www.getopt.org/luke/).
>
> On 8 Mrz., 04:51, "SNake!" <[EMAIL PROTECTED]> wrote:
> > Dear guys,
> >
> > I am new to sfLucenePlugin and Lucence, I just wonder I have a class
> > for example: Book, each Book could have multiple Authors, so now I
> > have a field "authorIDs" to indexed as keyword like : "1,10,30"
> >
> > but I cannot get any result as I query as "authorIDs:10 OR authorIDs:
> > 1"
> >
> > Could any one share about the experience on indexing one-to-many
> > relationship?
> > Did I use the wrong way?
> >
> > Snake
>
> 

--~--~-~--~~~---~--~~
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 : $result->getXXX()

2008-03-08 Thread Carl Vondrick

On Tuesday, March 04, 2008, Sébastien CAS wrote:
>  With getter :
>  $result->getPublishUp() => I obtain this error :  "Field name "publish_up"
> not found in document."
>
>  Without getter :
>  $result->publishUp : I access to the correct value.
Hey,
Sorry for responding so late -- I was out of town.

Anyways, I am unable to reproduce your problem.  My search.yml:
1 MyIndex:
2   models:
3 FooEntity:
4   fields:
5 body: unindexed
6 whatever: text
7 publishUp: text
8 id: keyword
9   description: publishUp
   10   index:
   11 encoding: UTF-8
   12 cultures: [en]
   13 analyzer: utf8num

And the model:
   10 class FooEntity extends BaseFooEntity
   11 {
   12   public function getWhatever()
   13   {
   14 return $this->getBody();
   15   }
   16
   17   public function getPublishUp()
   18   {
   19 return rand(0, 10);
   20   }
   21 }
   22
   23 sfLucenePropelBehavior::getInitializer()->setupModel('FooEntity');

Are you using the latest version of sfLucene?  Try upgrading to the one in 
SVN.

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: 1.1 beta: routing with periods

2008-03-01 Thread Carl Vondrick

On Saturday, March 01, 2008, Ian P. Christian wrote:
> That allows a period in 'slug'
>
> Also, take a look at the test cases for the routing stuff.
Hmm, yes, I guess that's how you're supposed to do it. I was expecting a 
variable_separator key or something like that.

--~--~-~--~~~---~--~~
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: Using the same method for several classes

2008-02-24 Thread Carl Vondrick

On Sunday, February 24, 2008, Tom Haskins-Vaughan wrote:
> I have quite a few classes that I'd like to use the same methods for.
> These are for tables where I have created_by and updated_by fields. I
> use the same getters in many different classes: NewsItem, BlogEntry,
> Photo, etc. and I was wondering if there was a way to do it with out
> explicitly declaring all the methods.
You might consider using a Propel behavior + sfMixer.

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] plugin dependencies

2008-02-20 Thread Carl Vondrick

Has anyone ever used pear's dependencies when deploying a symfony plugin?  If 
so, how well did it work?  Ideally, installing plugin C would automatically 
install A and B.

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 the core team save time!

2008-02-09 Thread Carl Vondrick

On Saturday, February 09, 2008, Fabian Lange wrote:
> Trac sends updates to all people participating in a ticket. So the easiest
> way to notify them is to add a comment to the ticket.
> All who worked previously on the ticket will get that comment as
> notification mail

I don't think Trac does this for me (although I wish it did).

--~--~-~--~~~---~--~~
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 the core team save time!

2008-02-09 Thread Carl Vondrick

On Friday, February 08, 2008, Dustin Whittle wrote:
> 2. Own your tickets ­ If you have ever opened a bug and it is still open,
> you should see it through until it is marked as fixed, wontfix, or invalid.
Is it possible for trac to optionally email updates to people who've 
contributed to the ticket / notify a person when it's been assigned to them?  


--~--~-~--~~~---~--~~
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 the core team save time!

2008-02-08 Thread Carl Vondrick

On Friday, February 08, 2008, Dustin Whittle wrote:
> If we all work together, we can save Fabien & Francois a lot of time so
> they can spend it on more important things (like family!)..

What is the process for commit access to a branch?  I sometimes run into 
random type-os that don't warrant a ticket, but could be fixed in a 5 second 
commit.

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 upgrade problem

2008-02-06 Thread Carl Vondrick

Hi,
Can you give me a stack trace for the undefined index notice?

The accent bug should be fixed in 0.1.3, however this is a very fragile bug, 
so there may be multiple causes.  If you can create a simple script that 
reproduces the bug, then send it to me.   However, often I find the problem 
is that people are not using a utf8 analyzer.

I don't understand your routing problem.

Carl

On Wednesday, February 06, 2008, gestadieu wrote:
> Hi all,
>
> I used sfLucenePlugin for a while on version 0.1.0 and it seems there
> are some bugs corrected on the latest version 0.1.4, so I've decided
> to upgrade my plugin unfortunately I now have an error message every
> time I try to rebuild the index (after a symfony cc):
>
> Notice: Undefined index:  object in /Applications/MAMP/bin/php5/lib/
> php/symfony/util/sfMixer.class.php on line 164
>
> I looked at Carl's doc and did not find anything that must be changed
> in the configuration of the plugin after an upgrade. I am a bit
> confuse on this, any idea or suggestion? (I tried also to upgrade to
> 0.1.1 or any others but same results)
>
> Beside this problem (I can always solve it on going back to 0.1.0...),
> I have 2 more questions on the search for a project I am working on
> (french only):
> - when I search 'harcelement' or 'harcélement' I do not find the same
> result (actually the first one does not give me anything). Is this fix
> in 0.1.3 or am I missing something?
> - part of the website is a blog and url for a post is /user/:username/
> post/:slug (@blog in my routing.yml). If my search get something in
> blogs it sends me back an error and mandatory slug is missing
> (although I check inside the index with Lucene Luke and the slug is
> there). Is this a bug because I have 2 parameters  in my route or
> again I am missing something?
>
> Thx
>

--~--~-~--~~~---~--~~
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, Fuzzy Searches?

2008-02-05 Thread Carl Vondrick

On Tuesday, February 05, 2008, Nicolas wrote:
> you can download the modification on this URL :
> http://90plan.ovh.net/~conspote/fuzzy_search.tar.gz
> You need to change 4 files.
>
> To use the fuzzy search, you must add a "~" at the end of your query.
>
> Feel free to ask me if you have a problem.

The problem was that the package.xml file had not been updated to include the 
fuzzy search files.  This has been fixed in version 0.1.4.

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, Fuzzy Searches?

2008-02-05 Thread Carl Vondrick

Hmm.  sfLucene should already ship with the Zend Framework 1.5
branch.  Are you checking out from SVN or downloading the pear
package?

On Feb 5, 9:12 am, Nicolas <[EMAIL PROTECTED]> wrote:
> Hi,
>
> you can download the modification on this URL 
> :http://90plan.ovh.net/~conspote/fuzzy_search.tar.gz
> You need to change 4 files.
>
> To use the fuzzy search, you must add a "~" at the end of your query.
>
> Feel free to ask me if you have a problem.
>
> Bye
>
> Nicolas LOUIS
>
> On 5 fév, 12:43, Fabian Lange <[EMAIL PROTECTED]> wrote:
>
> > Please share via blog, wiki snippeet or mailinglist :-)
>
> > I am very interested
>
> > .: Fabian
>
> > -Ursprüngliche Nachricht-
> > Von: symfony-users@googlegroups.com
> > Gesendet: 05.02.08 12:34:00
> > An: symfony users 
> > Betreff: [symfony-users] Re: sfLucene, Fuzzy Searches?
>
> > Ok i have implement the Fuzzy Search in sfLucenePlugin !
>
> > It's work very well !
>
> > If somebody want my code to implements this function for the futur,
> > you can send me a message, or i can share my code !
>
> > Bye !
>
> > Nicolas
>
> > On 4 fév, 15:56, Nicolas <[EMAIL PROTECTED]> wrote:
>
> > > Hi,
>
> > > Do you have a answer about my query?
>
> > > I have a another question about Proximity search, how do you have
> > > implement it on sfLucene 1.0 ?
>
> > > Thanks for your answer,
>
> > > Nicolas.
>
> > ___
> > GRATIS: Movie-FLAT. Jetzt 
> > freischalten!http://freemail.web.de/club/maxdome.htm
--~--~-~--~~~---~--~~
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 multiple search areas.

2008-02-02 Thread Carl Vondrick

On Saturday, February 02, 2008, James wrote:
> Let's say we have 2 kinds of data Mutual Funds and Stock  
> Descriptions.  I want to use sfLucene to search them independently  
> from 2 separate search boxes, so one will return only "Mutual Funds"  
> and the other only "Stock Descriptions".  I haven't started  
> investigating this yet, but it's on my list of things to do over the  
> next couple weeks.  I've already successfully used sfLucene to get one  
> of the 2 searchable, so I am hoping the 2nd one is trivial.  Can  
> anyone comment on this?
This is pretty simple to do.  You can approach this in one of two ways:

1) Use built-in categories.  This is useful if you are going to want to search 
both mutual funds and stock descriptions at the same time in the future.

2) Create two separate indexes.  Then, create two search modules that inherit 
the same base class.

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: sfLucenePlugin - nordic characters not working

2008-01-28 Thread Carl Vondrick

On Monday, January 28, 2008, Gunnar Lium wrote:
> I guess it might a good idea to either update the pear version of the
> plugin,
The latest pear package has been uploaded to 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: sfLucenePlugin - nordic characters not working

2008-01-28 Thread Carl Vondrick

On Monday, January 28, 2008, Gunnar Lium wrote:
> Ok. Now I did a checkout from svn, and copied  the contents of 1.0 branch
> to the sfLucenePlugin-directory. After symfony cc - lucene-rebuild, it
> seems like its working fine.

Great.  I was looking for at least some confirmation that things were stable 
before I push a new pear release.  I'll do so today.

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: sfLucenePlugin - nordic characters not working

2008-01-27 Thread Carl Vondrick

On Sunday, January 27, 2008, gunnarlium wrote:
> Has anyone made this plugin work with Norwegian characters like 'æøå'?
Yes, it works fine for me.  This is what makes it so incredibly hard to 
debug -- because I can't reproduce it.

I suspect the accented characters bug is really just user-error, but the fact 
that it's so widespread probably means that something needs to be clarified 
in the documentation or changed in sfLucene.  

For debugging purposes, you can find a barebones symfony project with a 
working copy of sfLucene-1.0 that works with accented characters on my 
machine: http://carlv.ath.cx/symfony/sfLucene10-Pub.tar.gz

After extracting, point config/config.php to your symfony 1.0 installation, 
put your db password in propel.ini and databases.yml, build the database.  

Then, browse to frontend_dev.php/foo/index to add data to the index.  Browse 
to frontend_dev.php/sfLucene to search.  By default, foo/index will add a 
model to your database with "Comóæøå estàs?" as the content.

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 index building problem.

2008-01-27 Thread Carl Vondrick

On Sunday, January 27, 2008, James wrote:
>    [sfLuceneIndexerException]
>    NUM000916530::getgroup_exemp() cannot be called
Hi,
This means exactly what it says.  It looks like you've modified your 
search.yml and the error output, but somewhere you try to call a method that 
doesn't exist. 

If you want to debug this on your own, look at line 72 in 
lib/indexer/sfLucenePropelIndexer.class.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: sfLucenePlugin search problem

2008-01-24 Thread Carl Vondrick

On Thursday, January 24, 2008, Fabian Lange wrote:
> I don't use Carls Plugin, but here some ideas for resolving issue:
sfLucene should implement all of these.  If you find that it does not, then 
this is a bug.

The most common reason for the bugs you are receiving is because of invalid 
characters in your data source.  Many people have been having trouble when 
pasting from Microsoft Word, especially with smart quotes.  My best advice 
right now is to narrow the amount of content you have and keep narrowing it 
until the content you have is indexed correctly.  Then, increase it slowly 
until you hit all the invalid characters.

I will do some work on the 1.0 branch this weekend and try to see if I can 
find an underlying problem in sfLucene with accented characters, but usually 
any iconv notice is a bad data source.

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: sfLucenePlugin problems

2008-01-24 Thread Carl Vondrick

On Thursday, January 24, 2008, Tamas Amon wrote:
> I have some problems with sfLucenePlugin

Hi,
You are using an old version of the plugin. Update either to the subversion 
head or download the latest release from the wiki. The highlighter has been 
since refactored in the 1.0 branch.  

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: sfLucenePlugin bug (?)

2008-01-23 Thread Carl Vondrick

Hi,
The change you mentioned is in SVN -- try checking that out.

Carl

On Jan 23, 10:29 am, Tamas Amon <[EMAIL PROTECTED]> wrote:
> I Trying the sfLucenePlugin, but when I try to search some hungarian
> word I get the
>
> Notice: iconv_strlen() [function.iconv-strlen]: Detected an illegal
> character in input string in ...
>
> But when I change in the lib/util/sfLuceneCriteria.class.php
>
> line 55 from
>
> $query = Zend_Search_Lucene_Search_QueryParser::parse($query);
>
> to
> $query = Zend_Search_Lucene_Search_QueryParser::parse($query, 'UTF-8');
>
> This is working, this is good for me, but I don't think this is the
> correct solution
>
> --
> Tamas Amon <[EMAIL PROTECTED]>
--~--~-~--~~~---~--~~
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: sfLucenePlugin search problem

2008-01-18 Thread Carl Vondrick

On Friday, January 18, 2008, Nicolas wrote:
> and i have a execption who is :
> [sfException]
> Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8Num
Hi,
Can I have a stack trace?

Also, are you using any custom interface modifications?  sfLucene has to use 
some hackish logic to get around Zend_Search_Lucene's static methods, which 
configures the analyzer, so a modification could prevent this logic from 
happening.

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: sfLucenePlugin search problem

2008-01-17 Thread Carl Vondrick

On Thursday, January 17, 2008, Nicolas wrote:
> I have already the same problem...
I just ran a simple test on the 1.0 branch regarding the correct analyzer 
loading and everything seems to be working fine,  I am unable to reproduce 
this behavior.

Are you using any user interface modifications? Try turning "case_sensitive" 
to "off" to make sure that we're accurately testing this.  

If you still can't get this to work, please open up 
sfLucenePlugin/lib/sfLucene.class.php and change line 363 to read:

throw new sfException(get_class($analyzer));

Post back the message and stack trace.  If no exception is thrown, let me know 
too.

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: Same template used by 2 different apps (in the same project)

2008-01-16 Thread Carl Vondrick

On Tuesday, January 15, 2008, Messó wrote:
> Is it possible (which is mentioned in the topic)?
> I would like to use the same "header" template in the apps, but I
> don't want to copy them from folder to folder

1) Use a partial, or
2) Use ->setTemplate() in the your action class

--~--~-~--~~~---~--~~
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: sfLucenePlugin search problem

2008-01-16 Thread Carl Vondrick

On Wednesday, January 16, 2008, Nicolas wrote:
> i have change :
> if (! preg_match('/[a-zA-Z]+/', $this->_input, $match,
> PREG_OFFSET_CAPTURE, $this->_position)) {
> by :
> if (! preg_match('/[a-zA-Z0-9]+/', $this->_input, $match,
> PREG_OFFSET_CAPTURE, $this->_position)) {

Hi,
Due to your search.yml file, the Common_Text file should never be loaded.  So, 
please try to do the following:

1) Make sure you are running the latest version of sfLucene
2) Make sure that either textnum or utf8num is selected as your analyzer.
3) Clear your cache
4) Rebuild the index

If that doesn't work: are you using symfony 1.0 or 1.1?

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: lucene

2008-01-12 Thread Carl Vondrick

On Saturday, January 12, 2008, Thierry wrote:
> Actually is there a did u mean suggestion feature (aka google)
> included in the zend lucene implementation?
Hey,
You should probably send these questions to the Zend Framework mailing list.

Out of the box, no, there is not any sort of Google Suggest feature in ZSL.

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: lucene

2008-01-11 Thread Carl Vondrick

Hey,
Check out sfLucene, which integrates Zend Search Lucene into your
symfony application: http://trac.symfony-project.com/wiki/sfLucenePlugin

For your particular problem, you have to tell Zend Search Lucene to
use a number analyzer.  By default, Zend Search Lucene does not index
numbers.

On Jan 11, 3:15 pm, Thierry <[EMAIL PROTECTED]> wrote:
> One thing in particular has been a surprise to me.
> On a Text field a search on 42PFL9632D gives:
> 42PFL9632D and
> 37PFL9732D as 100% relevant  results
>
> Maybe this has something to do with the query parsing, or is it just a
> bug?
--~--~-~--~~~---~--~~
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] sf1.1 forms and marking required fields

2008-01-06 Thread Carl Vondrick

Hello,
Using Symfony 1.1, what is the best way to mark fields as required using the 
widget formatters? IE, if I am using the table formatter, how can I make it 
output:

...

for required fields?

It seems there should be a simple way without hard-coding all the form 
elements in the template.

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: is_deeply doesn't fail on obvious bug?

2007-12-25 Thread Carl Vondrick

On Tuesday, December 25, 2007, Erik Itland wrote:
> It might be intentionally, but I guess it's a bug. Does anyone here know?
I just noticed this too a couple of days ago and I think it's a bug.

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: S3 pluggin?

2007-12-19 Thread Carl Vondrick

On Wednesday, December 19, 2007, James wrote:
> Though I see it in the pluggin section of the SVN browser.  Can I just  
> grab it from SVN?  How do I install it if I do?

From the command line in the project directory:

$ svn co http://svn.symfony-project.com/plugins/sfAmazonS3FSPlugin 
plugins/sfAmazonS3FSPlugin

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: Multiple Apps one project how to route?

2007-12-13 Thread Carl Vondrick

On Thursday, December 13, 2007, James wrote:
> The problem with getting sub folders to work is everything I've tried  
> with .htaccess files and creating directories has failed.
It's been pretty painless for me.

If you create a new folder ("admin") in your web folder, then put a 
symfony .htaccess file in there and move the front controllers, everything 
should work.  

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: Multiple Apps one project how to route?

2007-12-13 Thread Carl Vondrick

On Thursday, December 13, 2007, James wrote:
>  What is the best way to  route both of these?

Hey,
I prefer to setup subdomains, but sometimes I also use subfolders if I want to 
save an SSL certificate.  For example, www.example.org would point to the 
frontend application while admin.example.org would point to the admin 
application.

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: sfLucenePlugin custom indexer

2007-12-11 Thread Carl Vondrick

On Friday, November 16, 2007, Luciano A. Andrade wrote:
>  Can any one sugest a method to accomplish
> that. At first i think i add the state (published or not) and force
> the state (to published) on the not administrators, but this looks
> quite simplified and if i use a more complex control over permissions
> is not good enough.

There isn't an easy way to do this right now, but you'd use sfLuceneCriteria 
to build a complex query.  I've created a ticket as a long term goal to 
implement this:

http://trac.symfony-project.com/ticket/2652

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: sfLucenePlugin install errors?

2007-12-11 Thread Carl Vondrick

On Thursday, December 06, 2007, gunnarlium wrote:
> After that, it starts copying my entire project into the web/
> sfLucenePlugin-folder. Is this what the plugin is supposed to do (and
> why? version 0.0.7 did not do this when I tested it earlier)? Or is
> this a bug?

Weird!  This is not the intended behavior.  Initially, it looks to be a bug in 
the plugin system.  I don't have a Windows box handy to personally debug this 
though.

Try doing a subversion checkout.  You need to checkout a working copy from:
http://svn.symfony-project.com/plugins/sfLucenePlugin/branches/1.0

and put it in the "plugins/sfLucenePlugin" folder.  I'm not sure how to do 
this on Windows.

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] To camelize or not to camelize

2007-11-28 Thread Carl Vondrick

When writing yaml files, do you prefer the fields to be automatically 
camelized?

For instance, when writing a schema.yml, I expect:
created_at ---> createdAt

sfLucene currently does not do this translation because it caused a bunch of 
confusion by early users.  It is my sense that automatic "camelization" is 
more consistent with symfony standards, but I would like your input on this. 

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: sfLucenePlugin: Class 'myUser' not found

2007-11-27 Thread Carl Vondrick

On Tuesday, November 27, 2007, weaverryan wrote:
> Sticking my head out here a little as I haven't used this plugin yet,
> but I would check a few things.

Ryan explained the issue better than anyone could.  Also, try disabling any 
accelerator.

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: sfLucenePlugin: Class 'myUser' not found

2007-11-25 Thread Carl Vondrick

On Friday, November 23, 2007, forkmantis wrote:
> PHP Fatal error:  Class 'myUser' not found in //lib/symfony/user/
> sfUser.class.php on line 107

Hi,
This issue is not related to sfLucene.  Try clearing your cache and checking 
your configuration factories for the user.

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: sfLucenePlugin custom indexer

2007-11-16 Thread Carl Vondrick

On Friday, November 16, 2007, Luciano A. Andrade wrote:
> but i like to provide a
> search for the no published pages, this will means that all the
> SimpleCMS objects get indexed but they get removed from the search if
> they get found by a anonymous user and appear if they found by an
> administrator (or similar).

Hey,
Currently, this is not possible to do without some clever tinkering in the 
search methods.  You would have to build a query using a sfLuceneCriteria 
object or Zend's API to do this. 

If you come up with a nice of doing this, let me know and I'll see about 
adding it to the next release.

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: sfLucenePlugin - Wildcards not supported?

2007-11-16 Thread Carl Vondrick

On Wednesday, October 10, 2007, Daniel Staver wrote:
> If I try to add wildcards I get an exception "Wildcards not supported
> yet". Is this really not supported in Zend?

If you are so inclined, I just committed support for wildcards and range 
queries in r6063 by upgrading to the latest ZSL trunk.

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-12 Thread Carl Vondrick

On Monday, November 12, 2007, gestadieu wrote:
> one more thing, a very minor one: the 'All' in the category pull-down
> menu is not I18n.
In r5985.

--~--~-~--~~~---~--~~
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] 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: fillin

2007-11-04 Thread Carl Vondrick

On Sunday, November 04, 2007, Thierry wrote:
> are there any solutions for this out there?
I thought this was fixed in 1.0.8?

--~--~-~--~~~---~--~~
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: Anyone using MAMP

2007-10-26 Thread Carl Vondrick

On Friday, October 26, 2007, Tom Haskins-Vaughan wrote:
> I'm not sure what that means. And if it is, what can I do?
http://en.wikipedia.org/wiki/Segmentation_fault

I only bring it up because I was plagued by a segfaulting Apache server, which 
would randomly serve a blank page.  Check your server logs and it should tell 
you if there is a segfault or some other problem that is causing premature 
shutdown.

If it is a segfault, then you should check your RAM.

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: Developer tools

2007-10-19 Thread Carl Vondrick

Platform: Kubuntu 7.04 (need to upgrade to 7.10)
Text editor: Kate/vim
Primary test browser: Konqueror


--~--~-~--~~~---~--~~
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: Fulltext Search Lucene / Sphinx / MyISAM ?

2007-10-17 Thread Carl Vondrick

On Wednesday, October 17, 2007, Fabian Lange wrote:
> I am also using Lucene and honestly I doubt that you will reach the limit
> so easily.
You'll have to ask on the Zend Framework list to verify this, but the index 
only stores frequencies of keywords, not the entire text.  

> I do not know if Carls plugin works like that, but 
> that’s how my implementation of lucene works.
If you store the correct data in the index, then this is possible.  There's 
no ->getRealModel() method yet, but I will add it as soon as I can figure out 
a nice way to handle all types of primary keys.

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: Fulltext Search Lucene / Sphinx / MyISAM ?

2007-10-17 Thread Carl Vondrick

On Wednesday, October 17, 2007, Marco Schierhorn wrote:
> I’ve found the sfLucenePlugin. It seems to be easy to implement and to be
> very fast. But I read in the manual that it only provides indexes up to 2
> GByte.
Hey,
I can't comment on Sphinx, but the 2GB limit is only for 32bit platforms.  It 
has a much higher limit on 64bit.

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: sfLucenePlugin - Conflict with Zend bridge

2007-10-10 Thread Carl Vondrick

On Wednesday, October 10, 2007, Daniel Staver wrote:
> Is there a way to make sfLucenePlugin use the Zend bridge rather than
> it's own bundled copy of Zend Search? Right now there is a conflict if
> I try to enable the bridge. I'd like to keep the two separate so I can
> update Zend independently of the plugin.
See this thread for now.  I'm trying to come up with a nice way of doing this.

http://www.symfony-project.com/forum/index.php/t/9134/

--~--~-~--~~~---~--~~
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 - Getting five results per hit and I don't know why...

2007-10-10 Thread Carl Vondrick

On Wednesday, October 10, 2007, Daniel Staver wrote:
> I've been able to get the search up and running now, but I'm getting
> five identical results for each hit. If i get multiple results for a
> query it will loop through each different result, and then repeat from
> the beginning again for another four times.
When you do $ symfony lucene-rebuild myapp

does it show it indexing 5 times?  How many cultures do you have enabled?

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: [sfLucenePlugin] Notice: iconv(): Detected an illegal character in input string...

2007-10-09 Thread Carl Vondrick

On Tuesday, October 09, 2007, Daniel Staver wrote:
> Line 89, sfLuceneIndexer.class.php, change this:
> return Zend_Search_Lucene_Field::Text($name, $contents);
>
> To this:
> return Zend_Search_Lucene_Field::Text($name, $contents, 'UTF-8');

Corrected in r5445.  Thanks.  :)

--~--~-~--~~~---~--~~
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 - Unable to find a matching routing rule to generate url for params "".

2007-10-09 Thread Carl Vondrick

On Tuesday, October 09, 2007, Daniel Staver wrote:
> The documentation is not clear on exactly where the result partial
> should be placed and what it should be named. Does the above imply
> frontend/modules/publication/templates/searchResultSuccess.php? Or Am
> I supposed to place something in frontend/modules/sfLucene/templates/
> publication? A specific example would be good.
Hey,
It refers to frontend/modules/publication/templates/_searchResult.php .  It 
makes a call to include_partial.  I will update the documentation.

> In any case, right now I'm getting the following error and I don't
> know why... Any idea what is causing this to happen?
symfony can't route sfLucene/search to anything.  Did you delete the standard 
rules in your routing.yml file that map module/action? 

Sorry for all the problems.  Obviously it's still a little rough around the 
edges.

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: [sfLucenePlugin] Notice: iconv(): Detected an illegal character in input string...

2007-10-08 Thread Carl Vondrick

On Monday, October 08, 2007, Daniel Staver wrote:
> What's causing this to happen? I've configured everything to use UTF-8
Hi,
This is either a bug in Zend Search Lucene or sfLucene.  The tricky part is 
figuring out which.  :)

I just committed a change that will let you configure this some more.  In your 
search.yml file, you can now define the analyzer, case sensitivity, and 
whether to use mb_* functions:

index:
  analyzer: utf8num
  case_sensitive: off
  mb_string: on

(mb_* functions are ~100 times slower than other functions, so beware!)

If you figure out a work around, do let me know and I'll try to include it in 
the next release.

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: Best way for backwards-compatible URLs?

2007-10-05 Thread Carl Vondrick

On Friday, October 05, 2007, Charley Tiggs wrote:
> Redirect all 404 errors to an error.php
This is very wise.  This would eliminate the overhead of checking the URI on 
each request for old URLs.  

--~--~-~--~~~---~--~~
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: Best way for backwards-compatible URLs?

2007-10-04 Thread Carl Vondrick

On Thursday, October 04, 2007, Dan Grossman wrote:
> Use mod_rewrite or similar. The web server can handle this, you don't
> need to put it in the application.
I'm playing around with a filter that does the redirection.  The advantage of 
this is that I can hook into routing.yml and redirect according to those 
rules.

--~--~-~--~~~---~--~~
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] Best way for backwards-compatible URLs?

2007-10-04 Thread Carl Vondrick

What's the best way to have backwards-compatible URLS in symfony?

Basically, I want to create a list of my old new links with the corresponding 
symfony URI.  I have considered using symfony's routing system to do this, 
but...

- if one of the old links matches, then I would like to send a 301 redirect, 
not silently redirect.
- symfony tries to match the links in my templates and will send a page with 
links to the old URLs.

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: Unoffical SVN mirror

2007-09-29 Thread Carl Vondrick

On Saturday, September 29, 2007, Ian P. Christian wrote:
> The symfony SVN server is sometimes pretty slow (for my atleast), and
> have been known to go down a few times. (like it is at the moment?)
Hi,
Why not use SVK? http://svk.bestpractical.com/view/HomePage

--~--~-~--~~~---~--~~
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: .htaccess file not working

2007-09-28 Thread Carl Vondrick

On Friday, September 28, 2007, Carl Vondrick wrote:
> A .htaccess file for a certain application is not working for me.
After banging my head around for a while, I realized that it was because the 
project had a dot in the name.  I guess mod_rewrite doesn't like periods!

--~--~-~--~~~---~--~~
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] .htaccess file not working

2007-09-28 Thread Carl Vondrick

A .htaccess file for a certain application is not working for me.  This is a 
newly created projected and is therefore mostly using the default values.  
But, if I try to use routing, I get the Apache 404 error (indicating it never 
touches symfony).  All other applications running on the same machine, same 
Apache, same PHP version, same symfony, and same home folder are working 
fine.

My .htaccess file is below (it's the standard symfony one).  Does anyone know 
how to go about debugging this, let alone fixing it?

> Options +FollowSymLinks +ExecCGI
>
> 
>   RewriteEngine On
>
>   # uncomment the following line, if you are having trouble
>   # getting no_script_name to work
>   #RewriteBase /
>
>   # we skip all files with .something
>   RewriteCond %{REQUEST_URI} \..+$
>   RewriteCond %{REQUEST_URI} !\.html$
>   RewriteRule .* - [L]
>
>   # we check if the .html version is here (caching)
>   RewriteRule ^$ index.html [QSA]
>   RewriteRule ^([^.]+)$ $1.html [QSA]
>   RewriteCond %{REQUEST_FILENAME} !-f
>
>   # no, so we redirect to our front web controller
>   RewriteRule ^(.*)$ index.php [QSA,L]
> 
>
> # big crash from our front web controller
> ErrorDocument 500 "Application errorsymfony application failed to
> start properly"

--~--~-~--~~~---~--~~
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: Simple diagramming?

2007-09-20 Thread Carl Vondrick

On Thursday, September 20, 2007, Eno wrote:
> Maybe Fabien or Francois can tell us what sotware they used to make
> those simple block diagrams in the Caching chapter of the book? I need
> something to quickly make simple diagrams like that when working on a
> project.
Hey,
Checkout Dia: http://www.gnome.org/projects/dia/

-- 
Carl Vondrick
[EMAIL PROTECTED]

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

2007-09-13 Thread Carl Vondrick

On Monday, September 03, 2007, Piers Warmers wrote:
> Excellent, I'll get a patch together for you. Nothing too spectacular  
> at this stage.
Hey,
SVN is now setup: http://svn.symfony-project.com/plugins/sfLucenePlugin

> I'm just taking a poke around to see what can be done about this...
This is fixed in the latest revision.

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: sfPropelZSLSearchPlugin

2007-09-03 Thread Carl Vondrick

On Monday, September 03, 2007, Piers Warmers wrote:
> I've just taken a look at the new sfPropelZSLSearchPlugin, very cool.
>
> I'd like to contribute some updates / changes, is it in the svn  
> repository? I can't seem to see it anywhere?
Hey,
I'm the author of the plugin.  I don't have a SVN repository up yet (how do I 
get access to the symfony one?), but I'd be happy to take a look at your 
changes the old fashioned way until its up.

P.S. The plugin name is going to soon be changed to sfLucene because I'm 
getting too lazy to type sfPropelZSLSearchPlugin ;).  Actually, the real 
reason is because I want to add Doctrine support to it.

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: Adding a dynamic css stylesheet

2007-08-25 Thread Carl Vondrick

On Saturday, August 25, 2007, Charley Tiggs wrote:
> Thanks for the response!  This comes close but is not quite what I'm  
> looking for.  Neither of these approaches will allow me to override  
> the default CSS if I include them under the default section of  
> view.yml unless I include the CSS in the body of the page, which is  
> not what I want to do.
I think this might do what you want to do (in JS, of course) in view.yml

myActionSuccess:
  javascripts: []

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: Adding a dynamic css stylesheet

2007-08-25 Thread Carl Vondrick

On Saturday, August 25, 2007, Charley Tiggs wrote:
> My question:  What is the correct way to handle adding a dynamic css  
> page such that it's included last and the href is formatted correctly  
> to call the appropriate file?
Hey,
Check out the sfUJS and sfPJS plugins.  These do exactly the thing you 
mention... except in JavaScript.  You can probably hack them together to work 
with CSS.

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: PEAR fails to install symfony-1.0.6.tgz

2007-08-20 Thread Carl Vondrick

On Monday, August 20, 2007, Eno wrote:
> So what is the manual install process? And what about updates/
> upgrades?
http://www.symfony-project.com/content/download.html

See "Source Download"

To handle upgrades, either just do an svn update or download the archive 
again.

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: PEAR fails to install symfony-1.0.6.tgz

2007-08-20 Thread Carl Vondrick

On Monday, August 20, 2007, Elmo wrote:
> I attempted to install symfony via pear, but I get the same problem
> over and over. It downloads the file, but it doesn't ever say "install
> ok: channel://...". I can install "pake" OK, but not symfony. I am
> running pear on a full 64-bit (libs && bin) system.
Why not just download the source code yourself or do an SVN checkout? :-)

--~--~-~--~~~---~--~~
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: Dynamic config

2007-08-15 Thread Carl Vondrick

On Wednesday, August 15, 2007, Greg Freeman wrote:
> What is the best way to store dynamic configuration in a symfony
> application (i.e user-editable config in a backend application)

You can use yaml.

To convert a PHP array to yaml: $yaml = sfYaml::dump($array)

To convert yaml to PHP: $array = sfYaml::load($yaml);

However, you should read up on configuration handlers to really achieve what 
you want:

http://www.symfony-project.com/book/trunk/19-Mastering-Symfony-s-Configuration-Files#Understanding
 
Configuration Handlers

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: access myUser.class.php from a template/layout

2007-08-13 Thread Carl Vondrick

On Monday, August 13, 2007, scube wrote:
> my goal is to access the content of myUser.class.php (located in the
> lib dir) from a template or layout. But how can I do that?

Use the $sf_user variable from the templates.

isAuthenticated ? 'You are logged in' : 'You are not 
logged in' ?>

--~--~-~--~~~---~--~~
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: img tag

2007-08-10 Thread Carl Vondrick

On Friday, August 10, 2007, tolga wrote:
> what would be my path to  tag?


should do it.

--~--~-~--~~~---~--~~
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: Insert done 5 time by model

2007-08-08 Thread Carl Vondrick

On Wednesday, August 08, 2007, Tchinkatchuk wrote:
> Does somebody know why I am stupid or is it something very clever I
> can not find ?
You're likely forwarding to an action that calls this code in an infinite 
loop.  symfony by default prevents infinite forwards with a max of 5, which 
would explain this.

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: Best practices for paginated search results....

2007-08-07 Thread Carl Vondrick

On Tuesday, August 07, 2007, Jonathan Franks wrote:
> 1. As Hidden form fields
> 2. As GET values
> 3. As session values
> 4. other
I would use GET so users can bookmark the results.

-- 
Carl Vondrick
[EMAIL PROTECTED]

--~--~-~--~~~---~--~~
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: Catchable fatal error: Method Repository::__toString() must return a string value

2007-08-03 Thread Carl Vondrick

On Friday, August 03, 2007, Jack Bates wrote:
> or I'm missing some magic to ensure $this->authorized_form_of_name
> is always a string value?
This error is coming from PHP, not symfony.  PHP assumes that __toString() 
will return a string.  As you said, casting to a string is a good solution.

Isolated test case for the error:

$ php -r 'class foo { function __toString() { return null; } } $bar = new foo; 
echo $bar;'

Catchable fatal error: Method foo::__toString() must return a string value in 
Command line code on line 1

Call Stack:
0.0004  83408   1. {main}() Command line code:0

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