2009/6/12 Jonathan Vanasco <[email protected]>: > > or better stated: > i've got the 'render' and 'integration' stuff pretty much covered > > what i don't have covered is generating the content to fill solr with. > > i'm estimating that it will take about about 20 minutes to load all > the data from the db and template it. the live site works much faster > thanks to aggressive caching. > > my ideas thus far are: > > 1- write a controller that does this itself, or forks a process to > do it ( could that be within / from pylons ? ) > > 2- write a daemon to spider my site and have some special api/code > to only provide it to the daemon
You can create a paster command with access to pylons internals like "paster shell" have. http://pylonshq.com/docs/en/0.9.7/advanced_pylons/paster_commands/ More easy is create an URL and call it via "paster request", but need be more careful with security. In the test system you have all code needed for call your requests and get the returned html (spider). Maybe your want simulate triggers with sqlalchemy for update only changed information. You can do this with a MapperExtension. Excuse my poor english Regards Javi --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
