Copy files

2006-03-31 Thread ChengGong
How can I copy a file from one folder to another(subfolder) without change and property. I work on zope. -- http://mail.python.org/mailman/listinfo/python-list

DELETE an image

2006-03-27 Thread ChengGong
hi guys, could u tell me how to delete images ( files) from a folder by using tags in zope? Because I upload images there and test whether it is meet size requirment and then upload it to the folder it supposed to be. Pls help me, thanks. Cheng -- http://mail.python.org/mailman/listinfo/pytho

Upload and Resize image problem HELP!!!

2006-03-24 Thread ChengGong
I use following Python Script to upload file and image's but I can not specify a folder to store image. can any one help me? And I want to resize all the pictures, What shall I do? Finished thanks Cheng -- http://mail.python.org/mailman/listinfo/python-list

Re: About Image Size

2006-03-24 Thread ChengGong
Problem was solved thanks Cheng -- http://mail.python.org/mailman/listinfo/python-list

About Image Size

2006-03-24 Thread ChengGong
Finally I found that getSize()can be used to show the size of the image. but here I got another problem. these code is used to show the last uploaded picture's size. But when I run the method it says Error Type: AttributeError Error Value: 'str' object has no attribute 'getSize' Could a

Re: Probelem about image size and dimensions

2006-03-23 Thread ChengGong
Is that because I can not import PIL ? then i can not use codes above to show all image id? -- http://mail.python.org/mailman/listinfo/python-list

Re: Probelem about image size and dimensions

2006-03-23 Thread ChengGong
Hi Diez, They do not allow me to do what u said above. so I do not have any idea what is supposed to do. however i am think that if I can get the id of the image, i have chance to modify it. This is what i programed but it is an empty page, I but it in images folder File Library File

Re: Probelem about image size and dimensions

2006-03-23 Thread ChengGong
Diez, I asked the administrator that they won't allow me to import Image and PIL in Zope. I am wondering that how can I get the height and width and the size of the image in this situation? Can I just use to get Image's addtributs? Cheng -- http://mail.python.org/mailman/listinfo/python-list

Re: Probelem about image size and dimensions

2006-03-23 Thread ChengGong
Thank you for your reply. I have been learning python only 2 weeks. According what u said. I tried to import Image but there 's an error on the server. here is the message Error Type: ImportError Error Value: import of "Image" is unauthorized -- http://mail.python.org/mailman/listinfo/python-lis