[Zope] How to Update files that are already uploaded

2005-12-01 Thread Mike Jakowlew
Hi all,I'm trying to update a file thats already been uploaded. I can't figure out what command to use, "update_data"/"manage_upload"/"manage_edit". I've settled (so far) on manage_upload but it doesn't work. I get the error: Error Type: AttributeError Error Value:  manage_uploadmy code:___

[Zope] Re: Calling a SQL method from python and storing the results

2005-11-24 Thread Mike Jakowlew
Thanks all, I figured it out:## GET last entry in db and obtain ID## Find_Last_ID is my ZSQL method## the [0][0] part is record_number/record_item repectively## I only have one record in this method's return so I use [0] [0] get_last_id = container.Find_Last_ID().tuples()[0][0]On 11/24/05,

[Zope] Calling a SQL method from python and storing the results

2005-11-24 Thread Mike Jakowlew
Here is what I need to accomplish:I need to call a Z-SQL method from within python and store the result in a variable in python. I know this could probably be done easier with ZPT's or DTML, however the program that I've written does many things and depends on this particular variable for the major

[Zope] Re: Problems using forms to upload files to Zope

2005-11-15 Thread Mike Jakowlew
ename=filename, version=version, url="" ownerapp=ownerapp, isoapp=isoapp, comments=comments, date=date)    # return a confirmation page    page=container['thanks.html ']    return page()writeDB()On 11/15/05, Mike Jakowlew <[EMAIL PROTECTED]> wrote: Here's what I'm tr

[Zope] Problems using forms to upload files to Zope

2005-11-15 Thread Mike Jakowlew
Here's what I'm trying to accomplish:1. The user fills out a form page with various fields2. The user selects a file to upload3. when the user hits submit two things should happen:  - The file selected is uploaded   - all the filled out form fields are written to the database (MS SQL)This i