hi! i have a few questions concerning programming python under zope: - i need to write a keyword search engine, but how can i scan the documents in the data.bbb file? - i need to read and write files but my attempts failed - is this a problem with my script or a common situation? - i want to store small amounts of information - what is the best approach (a database connection would be overkill) ciao, basti --------------------------------------------------------------------- sebastian f. luehnsdorf beehive elektronische medien gmbh --------------------------------------------------------------------- http://basti.beehive.de http://www.beehive.de mailto:basti@beehive.de mailto:service@beehive.de fon: (+49 30) 84 78 20 fax: (+49 30) 84 78 22 99
Sebastian Luehnsdorf wrote:
- i need to read and write files but my attempts failed - is this a problem with my script or a common situation?
I guess it may be a problem with user rights - does the HTTP daemon user have the needed privileges.
- i want to store small amounts of information - what is the best approach (a database connection would be overkill)
Most probably Zopes built-in database ----------------------- Hannu
On Fri, Feb 26, 1999 at 02:00:10PM +0100, Sebastian Luehnsdorf wrote:
hi!
i have a few questions concerning programming python under zope:
- i need to write a keyword search engine, but how can i scan the documents in the data.bbb file?
You could easily traverse the object tree following the aquisition path if you wanted. You might look at lib/python/SearchIndex for more information on how to do this, it deals with attributes, but it's nearly the same I'd suspect.
- i need to read and write files but my attempts failed - is this a problem with my script or a common situation?
Read and write files HOW? Via HTTP? From External Methods?
- i want to store small amounts of information - what is the best approach (a database connection would be overkill)
A couple of options... you can store it directly in an object's properties perhaps, or in a "TinyTable" or use Gadfly which is a nearly complete SQL database written in Python that's very fast. Chris -- | Christopher Petrilli ``Television is bubble-gum for | petrilli@amber.org the mind.''-Frank Lloyd Wright
On Fri, Feb 26, 1999 at 02:00:10PM +0100, Sebastian Luehnsdorf wrote: ,----- [snip] | - i want to store small amounts of information - what is the best approach | (a database connection would be overkill) There is a Product called TinyTable in the Contrib section of the Zope site. If the data you want to store can be represented by a table, TinyTable is a very nice way to go. Kevin | | ciao, basti `----- -- Kevin Dangoor kid@ans.net / 734-214-7349
participants (4)
-
Christopher G. Petrilli -
Hannu Krosing -
Kevin Dangoor -
Sebastian Luehnsdorf