[Zope] Using python script within Zopeto build basic document repository

Chris Withers lists at simplistix.co.uk
Wed Mar 17 04:26:24 EST 2004


Chris Hughes wrote:
> Secondly - I am trying to code and learn! How can I create a context
> which is in a folder that is different to the script? 

What do you mean by "a context"?

> folder=container['documents']
> folder.manage_addFile('', file=file, title=title)
> 
> Then I need some magic line which sets a context up as the file called
> 'file' in the folder documents
> newFile= context[file]

Urm, newFile = folder[file] ?

> And then I will be able to write the extra properties somehow:
> newFile.manage_addProperty('test', 'test', 'text')

yup, that should work.

> Thirdly - How can I write a page which displays all of the documents in
> the folder in order of different properties. Ie the user can list the
> files in order of date, or only show the files on project1!

pay me and I'll write your app for you, come with specific problems and I'll try 
and provide answers for free ;-)

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk




More information about the Zope mailing list