[Zope] How to add existing folder in Zope

2009-03-27 Thread amol kumbhar
Hi,

I want to add existing folder in  zope. As we can add files by browsing how
could I add existing folder.

Thanks,
Amol.
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] How to add existing folder in Zope

2009-03-27 Thread amol kumbhar
Actually I want to use SmartClient for my web site and for this I have to
add the SmartClient Library folder into zope so using this I can write JS
which  include these libraries.

On Fri, Mar 27, 2009 at 6:33 PM, Andreas Jung li...@zopyx.com wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 27.03.2009 8:00 Uhr, amol kumbhar wrote:
  Hi,
 
  I want to add existing folder in  zope. As we can add files by browsing
  how could I add existing folder.
 

 This question does not make any sense. Anything existing can not be
 added. What do you mean? Take your time for asking meaningful questions.

 - -aj
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (Darwin)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAknMzrQACgkQCJIWIbr9KYzGawCcD/byu3H/0Nc/i8ERV/0Smq95
 kYAAoMAtRjPFKDaXAtpDAWlfQi+Gtqyx
 =Ba7/
 -END PGP SIGNATURE-

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


[Zope] Regarding ZODB

2009-03-24 Thread amol kumbhar
Hi!

I am trying to execute following code

*import ZODB
from Persistence import Persistent

class Employee(Persistent):

def setName(self, name):
self.name = name
*
but getting following error

*Error Type: ImportError
Error Value: import of Persistent from Persistence is unauthorized. You
are not allowed to access 'Persistent' in this context*

this is my full error log


Time 2009/03/24 22:31:33.559 GMT+0530  User Name (User Id) admin
(admin)  Request
URL http://localhost:9673/DeveloperGuide/Simpleinterface  Exception Type
ImportError  Exception Value import of Persistent from Persistence is
unauthorized. You are not allowed to access 'Persistent' in this context

Traceback (innermost last):

   - Module ZPublisher.Publish, line 119, in publish
   - Module ZPublisher.mapply, line 88, in mapply
   - Module ZPublisher.Publish, line 42, in call_object
   - Module Shared.DC.Scripts.Bindings, line 313, in __call__
   - Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
   - Module Products.PythonScripts.PythonScript, line 327, in _exec
   - Module None, line 2, in Simpleinterface
   *PythonScript at /DeveloperGuide/Simpleinterface*
   *Line 2*
   - Module AccessControl.ZopeGuards, line 284, in guarded_import

ImportError: import of Persistent from Persistence is unauthorized. You
are not allowed to access 'Persistent' in this context

Display traceback as
texthttp://localhost:9673/error_log/getLogEntryAsText?id=1237914093.560.351902229926

  REQUEST form-C''cookiesdtpref_rows'20'dtpref_cols'90%'tree-s
'eJzT0MgpMOQKVneEA1dbda4CI67EkgJjLj0AeGcHew'GLog
'%7Bleft%3A0%2Ctop%3A0%2Cwidth%3A1175%2Cheight%3A630%2CpriorityDefaults%3A%7BLog%3A4%7D%2CdefaultPriority%3A3%2CtrackRPC%3Anull%7D'lazy
itemsSESSIONbound method SessionDataManager.getSessionData of
SessionDataManager at /session_data_managerotherTraversalRequestNameStack
[]AUTHENTICATED_USERUser 'admin'URL'
http://localhost:9673/DeveloperGuide/Simpleinterface'SERVER_URL'
http://localhost:9673'AUTHENTICATION_PATH''traverse_subpath[]PUBLISHEDPythonScript
at /DeveloperGuide/SimpleinterfaceACTUAL_URL'
http://localhost:9673/DeveloperGuide/Simpleinterface'URL0
http://localhost:9673/DeveloperGuide/SimpleinterfaceURL1
http://localhost:9673/DeveloperGuideURL2http://localhost:9673BASE0
http://localhost:9673BASE1http://localhost:9673BASE2
http://localhost:9673/DeveloperGuideBASE3
http://localhost:9673/DeveloperGuide/SimpleinterfaceenvironHTTP_COOKIE'dtpref_rows=20;
dtpref_cols=90%;
GLog=%7Bleft%3A0%2Ctop%3A0%2Cwidth%3A1175%2Cheight%3A630%2CpriorityDefaults%3A%7BLog%3A4%7D%2CdefaultPriority%3A3%2CtrackRPC%3Anull%7D;
tree-s=eJzT0MgpMOQKVneEA1dbda4CI67EkgJjLj0AeGcHew'SERVER_SOFTWARE'Zope/(Zope
2.10.5-final, python 2.4.5, linux2) ZServer/1.1'SCRIPT_NAME''REQUEST_METHOD
'GET'PATH_INFO'/DeveloperGuide/Simpleinterface'SERVER_PROTOCOL'HTTP/1.1'
channel.creation_time1237914020CONNECTION_TYPE'keep-alive'
HTTP_ACCEPT_CHARSET'ISO-8859-1,utf-8;q=0.7,*;q=0.7'HTTP_USER_AGENT'Mozilla/5.0
(X11; U; Linux i686; en-US; rv:1.9.0.7) Gecko/2009030422 Ubuntu/8.04 (hardy)
Firefox/3.0.7'HTTP_REFERER'
http://localhost:9673/DeveloperGuide/Simpleinterface/ZPythonScriptHTML_editForm
'SERVER_NAME'0.0.0.0'REMOTE_ADDR'127.0.0.1'PATH_TRANSLATED
'/DeveloperGuide/Simpleinterface'SERVER_PORT'9673'HTTP_HOST'localhost:9673'
HTTP_ACCEPT'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
GATEWAY_INTERFACE'CGI/1.1'HTTP_ACCEPT_LANGUAGE'en-us,en;q=0.5'
HTTP_ACCEPT_ENCODING'gzip,deflate'HTTP_KEEP_ALIVE'300'


I think I have to change permissions, but the question is from WHERE please
help me out..


Thanks,
Amol
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] psycopg version mismatch (imported 2.0.6 (dec mx dt ext pq3))

2009-03-06 Thread amol kumbhar
Thanks for replying
but I am still there .

My DA.py contain this list of allowed_psycopg_version :


*ALLOWED_PSYCOPG_VERSIONS = ('2.0.7','2.0.8','2.0.9')*


and the condition which is generating the ImportError from this file is :

 *# check psycopg version and raise exception if does not match
if psycopg2.__version__[:9] not in ALLOWED_PSYCOPG_VERSIONS:
raise ImportError(psycopg version mismatch (imported %s) %
  psycopg2.__version__)*

could  you please guide me which version should I add in
ALLOWED_PSYCOPG_VERSION list





On Fri, Mar 6, 2009 at 2:03 PM, Andrew Milton a...@theinternet.com.auwrote:

 +---[ amol kumbhar ]--
 | This is my full error Log
 |
 | Site Error Log at  /error_log


 Yes you also need to update your ZPsycopg in your Zope products (it's
 part of the psycopg distribution).

 --
 Andrew Milton
 a...@theinternet.com.au




-- 
Amol Kumbhar
Software Developer
SVBP informatics
Cell : 9881720442
e-mail : amol.kumbha...@gmail.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] psycopg version mismatch (imported 2.0.6 (dec mx dt ext pq3))

2009-03-06 Thread amol kumbhar
I had found  *psycopg2-2.0.6.egg-info* in

* psycopg2-2.0.6.egg-info -
/usr/share/pycentral/python-psycopg2/site-packages/psycopg2-2.0.6.egg-info*

this path,but I am not able to make out how could I replace this to 2.0.9 ,


Thanks
Amol


On Fri, Mar 6, 2009 at 3:08 PM, Andrew Milton a...@theinternet.com.auwrote:

 +---[ amol kumbhar ]--
 | nt-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding:
 | quoted-printable Thanks for replying
 | but I am still there .
 |
 | My DA.py contain this list of allowed_psycopg_version :
 |
 |
 | ALLOWED_PSYCOPG_VERSIONS = ('2.0.7','2.0.8','2.0.9')
 |
 |
 | and the condition which is generating the ImportError from this file is :
 |
 |  # check psycopg version and raise exception if does not match
 | if psycopg2.__version__[:9] not in ALLOWED_PSYCOPG_VERSIONS:
 | raise ImportError(psycopg version mismatch (imported %s) %
 |   psycopg2.__version__)
 |
 | could  you please guide me which version should I add in
 | ALLOWED_PSYCOPG_VERSION list

 Don't do that unless you're not particularly fond of your data. 2.0.6 is
 not in this list because it contains bugs or incompatibilities with the
 2.0.9 version of ZPsycopg.

 You have a psycopg 2.0.6 *somewhere* (the python package, not the Zope
 adapter).

 Either in your Zope's lib/python or in your site-packages for your python.

 You need to make sure that that is *also* 2.0.9

 --
 Andrew Milton
 a...@theinternet.com.au




-- 
Amol Kumbhar
Software Developer
SVBP informatics
Cell : 9881720442
e-mail : amol.kumbha...@gmail.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] psycopg version mismatch (imported 2.0.6 (dec mx dt ext pq3))

2009-03-05 Thread amol kumbhar
Hi

I am using zope 2.10 , python2.4 and psycopg2-2.0.9 . I had created entry in
ZIM successfully but while connecting to db it is giving me following error.
Please pull me out from this ASAP.

An error was encountered while publishing this resource.

Error Type: ImportError
Error Value: psycopg version mismatch (imported 2.0.6 (dec mx dt ext pq3))




Thanks  Regards
Amol Kumbhar
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] psycopg version mismatch (imported 2.0.6 (dec mx dt ext pq3))

2009-03-05 Thread amol kumbhar
This is my full error Log

* Site Error Log at  /
http://localhost:9673/manage_workspaceerror_loghttp://localhost:9673/error_log/manage_workspace
* Exception traceback

   Time 2009/03/05 23:09:14.170 GMT+0530  User Name (User Id) admin
(admin)  Request
URL
http://localhost:9673/manage_addProduct/ZPsycopgDA/manage_addZPsycopgConnection
 Exception
Type ImportError  Exception Value psycopg version mismatch (imported 2.0.6
(dec mx dt ext pq3))

Traceback (innermost last):

   - Module ZPublisher.Publish, line 119, in publish
   - Module ZPublisher.mapply, line 88, in mapply
   - Module ZPublisher.Publish, line 42, in call_object
   - Module Products.ZPsycopgDA.DA, line 63, in manage_addZPsycopgConnection
   - Module Products.ZPsycopgDA.DA, line 83, in __init__
   - Module Products.ZPsycopgDA.DA, line 98, in edit
   - Module Products.ZPsycopgDA.DA, line 120, in connect

ImportError: psycopg version mismatch (imported 2.0.6 (dec mx dt ext pq3))

Display traceback as
texthttp://localhost:9673/error_log/getLogEntryAsText?id=1236274754.170.538033616757

  REQUEST formzdatetime'YES'tilevel2title'Z Psycopg 2 Database Connection'
encoding'utf-8'submit' Add 'id'Psycopg2_database_connection'
connection_string'zop...@localhost:5432 postgres 1'check'YES'cookies
dtpref_rows'20'dtpref_cols'90%'tree-s
'eJzT0MgpMOQKVneEA1dbda4CI67EkgJjLj0AeGcHew'lazy itemsSESSIONbound method
SessionDataManager.getSessionData of SessionDataManager at
/session_data_managerotherzdatetime'YES'tilevel2TraversalRequestNameStack
[]AUTHENTICATED_USERUser 'admin'URL'
http://localhost:9673/manage_addProduct/ZPsycopgDA/manage_addZPsycopgConnection
'title'Z Psycopg 2 Database Connection'check'YES'SERVER_URL'
http://localhost:9673'AUTHENTICATION_PATH''encoding'utf-8'PUBLISHEDbound
method __FactoryDispatcher__.manage_addZPsycopgConnection of
App.ProductContext.__FactoryDispatcher__ object at 0x9325d8cid
'Psycopg2_database_connection'connection_string'zop...@localhost:5432
postgres 1'ACTUAL_URL'
http://localhost:9673/manage_addProduct/ZPsycopgDA/manage_addZPsycopgConnection
'URL0
http://localhost:9673/manage_addProduct/ZPsycopgDA/manage_addZPsycopgConnection
URL1http://localhost:9673/manage_addProduct/ZPsycopgDAURL2
http://localhost:9673/manage_addProductURL3http://localhost:9673BASE0
http://localhost:9673BASE1http://localhost:9673BASE2
http://localhost:9673/manage_addProductBASE3
http://localhost:9673/manage_addProduct/ZPsycopgDABASE4
http://localhost:9673/manage_addProduct/ZPsycopgDA/manage_addZPsycopgConnection
environHTTP_COOKIE'dtpref_rows=20; dtpref_cols=90%;
tree-s=eJzT0MgpMOQKVneEA1dbda4CI67EkgJjLj0AeGcHew'SERVER_SOFTWARE'Zope/(Zope
2.10.5-final, python 2.4.5, linux2) ZServer/1.1'SCRIPT_NAME''REQUEST_METHOD
'POST'HTTP_KEEP_ALIVE'300'SERVER_PROTOCOL'HTTP/1.1'channel.creation_time
1236274737CONNECTION_TYPE'keep-alive'HTTP_ACCEPT_CHARSET
'ISO-8859-1,utf-8;q=0.7,*;q=0.7'HTTP_USER_AGENT'Mozilla/5.0 (X11; U; Linux
i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.04 (hardy) Firefox/3.0.6'
HTTP_REFERER'http://localhost:9673/manage_addProduct/ZPsycopgDA/add'
SERVER_NAME'0.0.0.0'REMOTE_ADDR'127.0.0.1'PATH_TRANSLATED
'/manage_addProduct/ZPsycopgDA/manage_addZPsycopgConnection'SERVER_PORT
'9673'CONTENT_LENGTH'192'HTTP_HOST'localhost:9673'HTTP_ACCEPT
'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
GATEWAY_INTERFACE'CGI/1.1'HTTP_ACCEPT_LANGUAGE'en-us,en;q=0.5'CONTENT_TYPE
'application/x-www-form-urlencoded'HTTP_ACCEPT_ENCODING'gzip,deflate'
PATH_INFO'/manage_addProduct/ZPsycopgDA/manage_addZPsycopgConnection'
















On Fri, Mar 6, 2009 at 11:15 AM, Andrew Milton a...@theinternet.com.auwrote:

 +---[ amol kumbhar ]--
 |
 | Hi
 |
 | I am using zope 2.10 , python2.4 and psycopg2-2.0.9 . I had created entry
 in
 | ZIM successfully but while connecting to db it is giving me following
 error.
 | Please pull me out from this ASAP.
 |
 | An error was encountered while publishing this resource.
 |
 | Error Type: ImportError
 | Error Value: psycopg version mismatch (imported 2.0.6 (dec mx dt ext
 pq3))

 Your ZPsycopg and your psycopg don't match up version-wise.

 You say you have psycopg 2.0.9 but 2.0.6 was imported...

 --
 Andrew Milton
 a...@theinternet.com.au




-- 
Amol Kumbhar
Software Developer
SVBP informatics
Cell : 9881720442
e-mail : amol.kumbha...@gmail.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )