[Zope] a couple of basic questions

Andrew Milton akm at theinternet.com.au
Wed Jun 20 10:12:43 EDT 2007


+-------[ Tudor Gabriel ]----------------------
| Hi, thank you for taking the time to read this.
| 
| 1. I'm trying to learn to write a website using zope, the progress is good but
| i need to understand how can i call an zope object (ZPT or SQL or Script) from
| a script in this setup:
| 
| /root
|     /mysite
|          /db
|             sql_do_something
|          /script
|             call_sql_do_something
|          index_html
| 
| 
| i tryed to call it using sql_do_something = context['db/sql_do_something']
| hoping that maybe using aquisition ... i can get the script ... but i get the
| message that he can't find the object.

script:
results = context.db.sql_do_something(some_arguments)


| 3. Almost the same as the svn problem ... i want to backup my files from time
| to time .. db and code, i know how to backup my mysql db, but i don't know how
| to get the zope files.
| I think i i find the answer for the question nb 2, number 3 will be the same.

As a lowest common denominator, you can ftp them out...

-- 
Andrew Milton
akm at theinternet.com.au


More information about the Zope mailing list