Re: [Zope] Problem with LocalFS (_local_path)

2001-01-31 Thread Tim Cook

Oliver Frommel wrote:

> this seems to add the localfs but makes listing the contents of the
> containg folder impossible. What's ging on here?
> 


http://zope.nipltd.com/public/lists/zope-archive.nsf/ByKey/61B0755228EDCCB7 

Just yesterday. The mailing list archives are a wonderful
resource.

-- Tim Cook, President --
Free Practice Management,Inc. | http://www.FreePM.com Office:
(901) 884-4126
"Liberty has never come from the government." - Woodrow Wilson

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Problem with LocalFS (_local_path)

2001-01-31 Thread Oliver Frommel

Hi,

I am trying to install LocalFS 0.9.6 on Zope 2.3.0 and get the following
error:

Error Type: AttributeError
Error Value: _local_path

Traceback (innermost last):
  File /opt2/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, line 222, in 
publish_module
  File /opt2/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, line 187, in publish
  File /opt2/Zope-2.3.0-src/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
(Object: Traversable)
  File /opt2/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, line 171, in publish
  File /opt2/Zope-2.3.0-src/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: manage_main)
  File /opt2/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, line 112, in call_object
(Object: manage_main)
  File /opt2/Zope-2.3.0-src/lib/python/Shared/DC/Scripts/Bindings.py, line 324, in 
__call__
(Object: manage_main)
  File /opt2/Zope-2.3.0-src/lib/python/Shared/DC/Scripts/Bindings.py, line 353, in 
_bindAndExec
(Object: manage_main)
  File /opt2/Zope-2.3.0-src/lib/python/App/special_dtml.py, line 236, in _exec
(Object: manage_main)
  File /opt2/Zope-2.3.0-src/lib/python/DocumentTemplate/DT_In.py, line 711, in 
renderwob
(Object: objectItems)
  File /opt2/Zope-2.3.0-src/lib/python/DocumentTemplate/DT_With.py, line 146, in render
(Object: sequence-key)
  File /opt2/Zope-2.3.0-src/lib/python/DocumentTemplate/DT_Var.py, line 271, in render
(Object: bobobase_modification_time)
  File /opt2/Zope-2.3.0-src/lib/python/Products/LocalFS/LocalFS.py, line 979, in 
bobobase_modification_time
(Object: rafiles)
AttributeError: (see above)



this seems to add the localfs but makes listing the contents of the 
containg folder impossible. What's ging on here? 

thanks
--Oliver





___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




RE: [Zope] Problem with LocalFS and Zope 2.3.0b1 (fix)

2001-01-18 Thread Ron Bickers

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> Hamish Lawson
> Sent: Thursday, January 18, 2001 11:23 AM
> To: [EMAIL PROTECTED]
> Subject: [Zope] Problem with LocalFS and Zope 2.3.0b1

> After adding a LocalFS object I get the error below (but the object
> gets added OK). It seems to be related to displaying the modification
> time in the management screen. I've temporarily gotten round it by

That's exactly what it is.  The Local FS object itself doesn't have
_local_path set, so bobobase_modification_time() fails when the management
screen tries to display the time.  The attached patch will fix it.  I
notified Jonothan Farr as well and he said it would be fixed for the next
release.

___

Ron Bickers
Logic Etc, Inc.
[EMAIL PROTECTED]

 localfs.patch


[Zope] Problem with LocalFS and Zope 2.3.0b1

2001-01-18 Thread =?iso-8859-1?q?Hamish=20Lawson?=

After adding a LocalFS object I get the error below (but the object
gets added OK). It seems to be related to displaying the modification
time in the management screen. I've temporarily gotten round it by
changing these lines in bobobase_modification_time:

t = os.stat(self._local_path)[stat.ST_MTIME]
return DateTime(t)

to

return DateTime()


Hamish Lawson

---

Zope Error
Zope has encountered an error while publishing this resource. 

Error Type: AttributeError
Error Value: _local_path





Troubleshooting Suggestions

The URL may be incorrect. 
The parameters passed to this resource may be incorrect. 
A resource that this resource relies on may be encountering an error. 
For more detailed information about the error, please refer to the HTML
source for this page. 

If the error persists please contact the site maintainer. Thank you for
your patience. 
 



Traceback (innermost last):
  File C:\Program Files\Zope\lib\python\ZPublisher\Publish.py, line
222, in publish_module
  File C:\Program Files\Zope\lib\python\ZPublisher\Publish.py, line
187, in publish
  File C:\Program Files\Zope\lib\python\Zope\__init__.py, line 221, in
zpublisher_exception_hook
(Object: ApplicationDefaultPermissions)
  File C:\Program Files\Zope\lib\python\ZPublisher\Publish.py, line
171, in publish
  File C:\Program Files\Zope\lib\python\ZPublisher\mapply.py, line 160,
in mapply
(Object: manage_main)
  File C:\Program Files\Zope\lib\python\ZPublisher\Publish.py, line
112, in call_object
(Object: manage_main)
  File C:\Program Files\Zope\lib\python\Shared\DC\Scripts\Bindings.py,
line 325, in __call__
(Object: manage_main)
  File C:\Program Files\Zope\lib\python\Shared\DC\Scripts\Bindings.py,
line 354, in _bindAndExec
(Object: manage_main)
  File C:\Program Files\Zope\lib\python\App\special_dtml.py, line 235,
in _exec
(Object: manage_main)
  File C:\Program Files\Zope\lib\python\DocumentTemplate\DT_In.py, line
710, in renderwob
(Object: objectItems)
  File C:\Program Files\Zope\lib\python\DocumentTemplate\DT_With.py,
line 146, in render
(Object: sequence-key)
  File C:\Program Files\Zope\lib\python\DocumentTemplate\DT_Var.py,
line 271, in render
(Object: bobobase_modification_time)
  File C:\Program Files\Zope\lib\python\Products\LocalFS\LocalFS.py,
line 888, in bobobase_modification_time
(Object: FileSystem)
AttributeError: (see above)





Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Problem with LocalFS

2000-06-22 Thread jensebaer



Hello,
 
I want to upload files to LocalFS. 
I created a LocalFS with the id: 
images
 
I don´t want to use the existing addImageForm to 
create a new Image in the LocalFS.
 
I want to use two DTML Methods
 
uploadform

    File  

 
and send the data to:
 
savefile



 
but this do not create a new image in the 
LocalFS.
It creates an image in the Folder in which the the 
LocalFS exists.
 
I do not understand why 
 
Jens