Re: [Zope-dev] Problem with CMF trunk and Zope 2 trunk

2010-06-23 Thread Hanno Schlichting
Hi.

On Wed, Jun 23, 2010 at 8:52 PM, Charlie Clark
charlie.cl...@clark-consulting.eu wrote:
 I just wanted to test something with the CMF buildout and I'm getting the
 following error. As far as I can tell I have everything correctly up to
 date. What's going wrong?

You have likely some old SVN remains. If you do an svn st on the
Zope2 tree, you should see some orphaned directories - remove those.

Alternatively remove the Zope2 checkout and start fresh.

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


Re: [Zope-dev] Problem with CMF trunk and Zope 2 trunk

2010-06-23 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Charlie Clark wrote:
 Hi,
 
 I just wanted to test something with the CMF buildout and I'm getting the  
 following error. As far as I can tell I have everything correctly up to  
 date. What's going wrong?
 
 Charlie
 
 fuchsia:trunk charlieclark$ bin/instance fg
 Traceback (most recent call last):
File bin/instance, line 91, in module
  + sys.argv[1:])
File  
 /Users/charlieclark/Sites/cmf-svn/CMF.buildout/trunk/eggs/plone.recipe.zope2instance-4.0a1-py2.6.egg/plone/recipe/zope2instance/ctl.py,
   
 line 232, in main
  options.realize(args, doc=__doc__)
File  
 /Users/charlieclark/Sites/cmf-svn/CMF.buildout/trunk/src/Zope2/src/Zope2/Startup/zopectl.py,
   
 line 148, in realize
  ZDOptions.realize(self, *args, **kw)
File  
 /Users/charlieclark/Sites/cmf-svn/CMF.buildout/trunk/eggs/zdaemon-2.0.4-py2.6.egg/zdaemon/zdoptions.py,
   
 line 290, in realize
  self.load_schema()
File  
 /Users/charlieclark/Sites/cmf-svn/CMF.buildout/trunk/eggs/zdaemon-2.0.4-py2.6.egg/zdaemon/zdoptions.py,
   
 line 338, in load_schema
  self.schema = ZConfig.loadSchema(self.schemafile)
File  
 /Users/charlieclark/Sites/cmf-svn/CMF.buildout/trunk/eggs/ZConfig-2.8.0-py2.6.egg/ZConfig/loader.py,
   
 line 33, in loadSchema
  return SchemaLoader().loadURL(url)
File  
 /Users/charlieclark/Sites/cmf-svn/CMF.buildout/trunk/eggs/ZConfig-2.8.0-py2.6.egg/ZConfig/loader.py,
   
 line 67, in loadURL
  return self.loadResource(r)
File  
 /Users/charlieclark/Sites/cmf-svn/CMF.buildout/trunk/eggs/ZConfig-2.8.0-py2.6.egg/ZConfig/loader.py,
   
 line 195, in loadResource
  schema = ZConfig.schema.parseResource(resource, self)
File  
 /Users/charlieclark/Sites/cmf-svn/CMF.buildout/trunk/eggs/ZConfig-2.8.0-py2.6.egg/ZConfig/schema.py,
   
 line 27, in parseResource
  xml.sax.parse(resource.file, parser)
File  
 /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/xml/sax/__init__.py,
   
 line 33, in parse
  parser.parse(source)
File  
 /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/xml/sax/expatreader.py,
   
 line 107, in parse
  xmlreader.IncrementalParser.parse(self, source)
File  
 /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/xml/sax/xmlreader.py,
   
 line 123, in parse
  self.feed(buffer)
File  
 /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/xml/sax/expatreader.py,
   
 line 207, in feed
  self._parser.Parse(data, isFinal)
File  
 /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/xml/sax/expatreader.py,
   
 line 301, in start_element
  self._cont_handler.startElement(name, AttributesImpl(attrs))
File  
 /Users/charlieclark/Sites/cmf-svn/CMF.buildout/trunk/eggs/ZConfig-2.8.0-py2.6.egg/ZConfig/schema.py,
   
 line 103, in startElement
  getattr(self, start_ + name)(attrs)
File  
 /Users/charlieclark/Sites/cmf-svn/CMF.buildout/trunk/eggs/ZConfig-2.8.0-py2.6.egg/ZConfig/schema.py,
   
 line 306, in start_import
  src = self._loader.schemaComponentSource(pkg, file)
File  
 /Users/charlieclark/Sites/cmf-svn/CMF.buildout/trunk/eggs/ZConfig-2.8.0-py2.6.egg/ZConfig/loader.py,
   
 line 217, in schemaComponentSource
  package=package)
 ZConfig.SchemaResourceError: could not load package ZServer: No module  
 named tainted
Package name: 'ZServer'
File name: 'component.xml'
Package path: None

You likely need to get rid of the directories in 'src' correspongin to
the newly-laid eggs:

 $ rm -rf include src/AccessControl src/DocumentTemplate \
  src/Products/ZCTextIndex

and rerun buildout.


Tres.
- --
===
Tres Seaver  +1 540-429-0999  tsea...@palladion.com
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkwiXNYACgkQ+gerLs4ltQ7uowCfVmrC8Zw21QKN+lRVB1mdYWtx
tv0AoNGz9/RzpcfsrB2NzhK0hToxM3Xd
=uhs6
-END PGP SIGNATURE-

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


Re: [Zope-dev] Problem with CMF trunk and Zope 2 trunk

2010-06-23 Thread Charlie Clark
Am 23.06.2010, 21:05 Uhr, schrieb Hanno Schlichting ha...@hannosch.eu:

 You have likely some old SVN remains. If you do an svn st on the
 Zope2 tree, you should see some orphaned directories - remove those.
 Alternatively remove the Zope2 checkout and start fresh.

Thanks Hanno and Tres for the pointers. A bundle of stuff has moved:

Everything running okay now.

/Users/charlieclark/Sites/cmf-svn/CMF.buildout/trunk/src/Products.CMFCore/Products/CMFCore/FSObject.py:21:
  
DeprecationWarning: RoleManager is deprecated. RoleManager is no longer  
part of AccessControl, please depend on Zope2 and import from OFS.role or  
use the new minimal RoleManager class from AccessControl.rolemanager.
   from AccessControl.Role import RoleManager
/Users/charlieclark/Sites/cmf-svn/CMF.buildout/trunk/src/Zope2/src/Zope2/App/ClassFactory.py:22:
  
DeprecationWarning: UserFolder is deprecated. User folders are no longer  
part of AccessControl, please depend on Zope2 and import from  
OFS.userfolder or use the new minimal user folder classes from  
AccessControl.userfolder.
   return getattr(m, name)

I think we need to fix these imports in CMF.

Charlie
-- 
Charlie Clark
Managing Director
Clark Consulting  Research
German Office
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-600-3657
Mobile: +49-178-782-6226
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Problem in Fetching values from the ZSQL method

2010-05-19 Thread Charlie Clark
Am 19.05.2010, 09:48 Uhr, schrieb joseph_ig gladiato...@gmail.com:

 Hi all,

Hiya Joseph,

zope-db is a better list for this discussion.

 I have written a ZSQL method named ('getSummaryValue') for fetching the
 summary result from a table. Please see the following query.
 SELECT
 SecID
 ,SUM(CASE WHEN txnType IN('pi') THEN quantity ELSE 0 END) AS InitPos
 ,SUM(CASE WHEN txnType IN('pe') THEN quantity ELSE 0 END) AS EndPos
 FROM Txntemp
 WHERE  Txntemp.fileImportID =
 GROUP BY SecID

 This ZSQL method takes a single parameter seqID of type int
 This  ZSQL method  script is called within a Python_script as follows
 context.getSummaryValue(seqID = SequenceID)

 the SequenceID is passed in as a request variable to the python  
 script. I
 have two sites one testing and another Live.

 In testing site the script does return value for the sequenceID passed  
 into it as a request variable.

 But while running in Live environment it doesn't return any value  for  
 the sequenceID passed into it as a request variable.
 But when the sequeneceID is hardcoded into the python script it does  
 return
 the details in LIVE.

I don't see seqID being used in the statement.

You can debug the call by passing in the src__=True parameter. This will  
allow you to see exactly what SQL is being sent to the database.

 Please help to resolve the issue. All help are really appreciated. Its
 really critical Please help.

Charlie
-- 
Charlie Clark
Managing Director
Clark Consulting  Research
German Office
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-600-3657
Mobile: +49-178-782-6226
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Problem in Fetching values from the ZSQL method

2010-05-19 Thread joseph_ig

Hi Charlie,

Let me thank you first for the help. 

SELECT 
SecID
,SUM(CASE WHEN txnType IN('pi') THEN quantity ELSE 0 END) AS InitPos
,SUM(CASE WHEN txnType IN('pe') THEN quantity ELSE 0 END) AS EndPos
FROM Txntemp
WHERE  Txntemp.fileImportID =  dtml-sqlvar seqID type=int 
GROUP BY SecID

Could you please explain how to make use of the src__=True parameter and
where can we view exactly what SQL is being sent to the database.
Please clarify in details.





Charlie Clark-6 wrote:
 
 Am 19.05.2010, 09:48 Uhr, schrieb joseph_ig gladiato...@gmail.com:
 
 Hi all,
 
 Hiya Joseph,
 
 zope-db is a better list for this discussion.
 
 I have written a ZSQL method named ('getSummaryValue') for fetching the
 summary result from a table. Please see the following query.
 SELECT
 SecID
 ,SUM(CASE WHEN txnType IN('pi') THEN quantity ELSE 0 END) AS InitPos
 ,SUM(CASE WHEN txnType IN('pe') THEN quantity ELSE 0 END) AS EndPos
 FROM Txntemp
 WHERE  Txntemp.fileImportID =
 GROUP BY SecID
 
 This ZSQL method takes a single parameter seqID of type int
 This  ZSQL method  script is called within a Python_script as follows
 context.getSummaryValue(seqID = SequenceID)
 
 the SequenceID is passed in as a request variable to the python  
 script. I
 have two sites one testing and another Live.
 
 In testing site the script does return value for the sequenceID passed  
 into it as a request variable.
 
 But while running in Live environment it doesn't return any value  for  
 the sequenceID passed into it as a request variable.
 But when the sequeneceID is hardcoded into the python script it does  
 return
 the details in LIVE.
 
 I don't see seqID being used in the statement.
 
 You can debug the call by passing in the src__=True parameter. This will  
 allow you to see exactly what SQL is being sent to the database.
 
 Please help to resolve the issue. All help are really appreciated. Its
 really critical Please help.
 
 Charlie
 -- 
 Charlie Clark
 Managing Director
 Clark Consulting  Research
 German Office
 Helmholtzstr. 20
 Düsseldorf
 D- 40215
 Tel: +49-211-600-3657
 Mobile: +49-178-782-6226
 ___
 Zope-Dev maillist  -  Zope-Dev@zope.org
 https://mail.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists - 
  https://mail.zope.org/mailman/listinfo/zope-announce
  https://mail.zope.org/mailman/listinfo/zope )
 
 

-- 
View this message in context: 
http://old.nabble.com/Problem-in-Fetching-values-from-the-ZSQL-method-tp28605115p28609879.html
Sent from the Zope - Dev mailing list archive at Nabble.com.

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


Re: [Zope-dev] Problem with zope.sendmail in Python = 2.5.1

2009-09-14 Thread Gary Poster

On Sep 3, 2009, at 10:53 PM, Chris McDonough wrote:

 FWIW, we forked zope.sendmail a while back (with the intent of  
 eventually merging these changes back upstream) as  
 repoze.sendmail.  It does not use any thread to do queue  
 processing.  Instead, a separate process can be run to handle queue  
 processing.

 This is being actively maintained.

 http://repoze.org/viewcvs/repoze.sendmail/trunk/README.txt?rev=3688view=markup

Thank you Chris.  On the face of it, it sounds like it could be merged  
in with zope.sendmail very easily, if you have the same interfaces.   
The zope.sendmail package already advertises the ability to use an  
external process for processing queued mail, but that appears to be an  
aspect of the design and the interfaces rather than in the  
implementation.

For this particular problem I faced, though, sticking with threads was  
easier for now.

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


Re: [Zope-dev] Problem with zope.sendmail in Python = 2.5.1

2009-09-03 Thread Chris McDonough
FWIW, we forked zope.sendmail a while back (with the intent of eventually 
merging these changes back upstream) as repoze.sendmail.  It does not use any 
thread to do queue processing.  Instead, a separate process can be run to 
handle 
queue processing.

This is being actively maintained.

http://repoze.org/viewcvs/repoze.sendmail/trunk/README.txt?rev=3688view=markup

On 9/3/09 10:07 PM, Gary Poster wrote:
 Hi all.  One of the contributors to the Launchpad project has
 identified a problem with zope.sendmail and thread changes in Python
   = 2.5.1.  Here is his description:

 
 Description of the situation:

 Prior to Python 2.5.1, the atexit handlers were executed when the
 *main* thread exits. However,http://bugs.python.org/issue1566280 was
 then filed, the essence of which is that the atexit handlers could
 tear down cross-thread resources that were still in use by other
 threads.

 For this reason, the shutdown procedure was modified in Python 2.5.1 -
 now, when the main thread exits, it first makes a private call to
 threading._shutdown(), which waits until all non-daemon threads have
 exited, and *only then* proceeds to run the atexit handlers.

 Herein lies the problem. zope.sendmail.delivery.QueueProcessorThread
 attempts to use atexit to notify itself when it should shut down.
 However, the Python runtime= 2.5.1 will wait for the
 QueueProcessorThread to exit before it calls the atexit handlers!

 Potential solutions:

 (1) To gain behaviour most similar to earlier Python versions, an evil
 monkeypatch into Python internals like this: 
 http://bazaar.launchpad.net/~maxb/zope3/launchpad-3.4-py2.5/revision/9works
 .

 (2) Make the QueueProcessorThread a daemon thread. It will be
 terminated without notification when the interpreter exits, but the
 current QueueProcessorThread does not attempt to ensure its queue is
 completely flushed before shutdown anyway, so that should not matter.

 I will attach a small Python demo program useful for illustrating and
 exploring the issue.
 

 You can see the bug report, and his demo program, here:

 https://bugs.edge.launchpad.net/zope3/+bug/413335

 I wasn't going to send this until I had investigated this myself, but
 I have been taking too long and thought I'd at least send this out to
 see if anyone has any thoughts.  Otherwise, I'll look into it ASAP and
 report back.

 Thanks

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


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


Re: [Zope-dev] ** PROBLEM alert - Zope Project Services (SVN/Downloads/Mailman/...)/KGS age is WARNING **

2009-02-01 Thread Christian Theune
On Sat, 31 Jan 2009 21:55:43 -0800
Stephan Richter srich...@cosmos.phy.tufts.edu wrote:

 On Saturday 31 January 2009, Christian Theune wrote:
  I'm not sure this is relevant anymore. I guess this might be a
  better URL now:
  http://download.zope.org/zope3.4/3.4.0/pypi-poll-access.lock
 
  Stephan?
 
 Let's use one of these, since they do not depend the specifics of the
 KGS:
 
 http://download.zope.org/zope3.4/index.html
 http://download.zope.org/zope3.4/3.4.0/versions.cfg
 http://download.zope.org/zope3.4/3.4.0/controlled-packages.cfg

Ok, I'm pointing to the versions.cfg now. Is this file's mtime being
updates regularly when that cron job runs?

Christian


-- 
Christian Theune · c...@gocept.com
gocept gmbh  co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 7 · fax +49 345 1229889 1
Zope and Plone consulting and development
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] ** PROBLEM alert - Zope Project Services (SVN/Downloads/Mailman/...)/KGS age is WARNING **

2009-02-01 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On Feb 1, 2009, at 06:54 , Stephan Richter wrote:

 On Saturday 31 January 2009, Jens Vagelpohl wrote:
 I just need to know what to look for to see if
 it's fixed.

 Works.

Quick question: How is doenload.zope.org maintained? Shell access? And  
who does it? It should be moved to the foundation servers at some point.

jens


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkmFdPgACgkQRAx5nvEhZLI4pgCgo9gHVfIw/oLF4CQilhC3yokd
IxwAniD69UmVpkJ6+ubSbtH3HbYmoXFJ
=Tc4X
-END PGP SIGNATURE-
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] ** PROBLEM alert - Zope Project Services (SVN/Downloads/Mailman/...)/KGS age is WARNING **

2009-02-01 Thread Jim Fulton

On Feb 1, 2009, at 5:10 AM, Jens Vagelpohl wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 On Feb 1, 2009, at 06:54 , Stephan Richter wrote:

 On Saturday 31 January 2009, Jens Vagelpohl wrote:
 I just need to know what to look for to see if
 it's fixed.

 Works.

 Quick question: How is doenload.zope.org maintained? Shell access?

Yes

 And
 who does it?

Mostly Stephan at this point.

 It should be moved to the foundation servers at some point.


+1

Jim

--
Jim Fulton
Zope Corporation


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


Re: [Zope-dev] ** PROBLEM alert - Zope Project Services (SVN/Downloads/Mailman/...)/KGS age is WARNING **

2009-02-01 Thread Stephan Richter
On Sunday 01 February 2009, Jens Vagelpohl wrote:
 Quick question: How is doenload.zope.org maintained? Shell access? And
 who does it? It should be moved to the foundation servers at some point.

download.zope.org == svn.zope.org

I maintain only the KGS directories. I would love to spread the knowledge on 
how to keep the KGSs maintianed though.

Regards,
Stephan
-- 
Stephan Richter
Web Software Design, Development and Training
Google me. Zope Stephan Richter
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] ** PROBLEM alert - Zope Project Services (SVN/Downloads/Mailman/...)/KGS age is WARNING **

2009-02-01 Thread Stephan Richter
On Sunday 01 February 2009, Christian Theune wrote:
 Ok, I'm pointing to the versions.cfg now. Is this file's mtime being
 updates regularly when that cron job runs?

No, is that a problem? I can find you a file that regularly changes, if you 
need to have one.

Regards,
Stephan
-- 
Stephan Richter
Web Software Design, Development and Training
Google me. Zope Stephan Richter
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] ** PROBLEM alert - Zope Project Services (SVN/Downloads/Mailman/...)/KGS age is WARNING **

2009-02-01 Thread Christian Theune
On Sun, 1 Feb 2009 12:34:39 -0800
Stephan Richter srich...@cosmos.phy.tufts.edu wrote:

 On Sunday 01 February 2009, Christian Theune wrote:
  Ok, I'm pointing to the versions.cfg now. Is this file's mtime being
  updates regularly when that cron job runs?
 
 No, is that a problem? I can find you a file that regularly changes,
 if you need to have one.

I'd like to use one that changes regularly as parts of the KGS get
updated regularly and we had quite some annoyances with the cron
getting stuck, so I'd like to monitor those generated files not to get
old without noticing.


-- 
Christian Theune · c...@gocept.com
gocept gmbh  co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 7 · fax +49 345 1229889 1
Zope and Plone consulting and development
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] ** PROBLEM alert - Zope Project Services (SVN/Downloads/Mailman/...)/KGS age is WARNING **

2009-01-31 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On Jan 31, 2009, at 10:06 , Tres Seaver wrote:

 If you could provide a little bit more context since I have no idea
 how download.zope.org is managed I could look at it. I need to know
 what the URLs are that do not work.

 Probably the virtualhost section for download.zope.org needs to  
 allow
 following symlinks.

Yeah, did that first. I just need to know what to look for to see if  
it's fixed.

jens


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkmEG0oACgkQRAx5nvEhZLKjMwCeNkoLNVmJXZ3YpdBviKZ0DwgM
/8wAoIZBEKvtyG3SskB6UmCW5Wa9PfH6
=RpdU
-END PGP SIGNATURE-
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] ** PROBLEM alert - Zope Project Services (SVN/Downloads/Mailman/...)/KGS age is WARNING **

2009-01-31 Thread Christian Theune
On Sat, 31 Jan 2009 10:35:06 +0100
Jens Vagelpohl j...@dataflake.org wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 
 On Jan 31, 2009, at 10:06 , Tres Seaver wrote:
 
  If you could provide a little bit more context since I have no idea
  how download.zope.org is managed I could look at it. I need to know
  what the URLs are that do not work.
 
  Probably the virtualhost section for download.zope.org needs to  
  allow
  following symlinks.
 
 Yeah, did that first. I just need to know what to look for to see if  
 it's fixed.

My Nagios looks at this URL:
http://download.zope.org/zope3.4/pypi-poll-access.lock

I'm not sure this is relevant anymore. I guess this might be a better
URL now:
http://download.zope.org/zope3.4/3.4.0/pypi-poll-access.lock

Stephan?

-- 
Christian Theune · c...@gocept.com
gocept gmbh  co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 7 · fax +49 345 1229889 1
Zope and Plone consulting and development
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] ** PROBLEM alert - Zope Project Services (SVN/Downloads/Mailman/...)/KGS age is WARNING **

2009-01-31 Thread Stephan Richter
On Saturday 31 January 2009, Jens Vagelpohl wrote:
 On Jan 31, 2009, at 10:06 , Tres Seaver wrote:
  If you could provide a little bit more context since I have no idea
  how download.zope.org is managed I could look at it. I need to know
  what the URLs are that do not work.
 
  Probably the virtualhost section for download.zope.org needs to
  allow
  following symlinks.

 Yeah, did that first. I just need to know what to look for to see if
 it's fixed.

Works. See

http://download.zope.org/zope3.4/versions-3.4.0c4.cfg

which forwards to 

http://download.zope.org/zope3.4/3.4.0c4/versions.cfg

Thanks,
Stephan
-- 
Stephan Richter
Web Software Design, Development and Training
Google me. Zope Stephan Richter
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] ** PROBLEM alert - Zope Project Services (SVN/Downloads/Mailman/...)/KGS age is WARNING **

2009-01-31 Thread Stephan Richter
On Saturday 31 January 2009, Christian Theune wrote:
 I'm not sure this is relevant anymore. I guess this might be a better
 URL now:
 http://download.zope.org/zope3.4/3.4.0/pypi-poll-access.lock

 Stephan?

Let's use one of these, since they do not depend the specifics of the KGS:

http://download.zope.org/zope3.4/index.html
http://download.zope.org/zope3.4/3.4.0/versions.cfg
http://download.zope.org/zope3.4/3.4.0/controlled-packages.cfg

Regards,
Stephan
-- 
Stephan Richter
Web Software Design, Development and Training
Google me. Zope Stephan Richter
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] problem with using webDAV between MS Word and Zope

2008-10-29 Thread Sidnei da Silva
Please make sure you read the information contained here:

http://awkly.org/2007/06/23/google-soc-status-report-1/


On Wed, Oct 29, 2008 at 2:15 AM, Wayne Glover
[EMAIL PROTECTED] wrote:
 hi all,

 i am using plone 3+ with zope ope-2.10.5-final

 I am trying to use webDAV between Word and Zope.  This works fine for OO
 (yes i know - don't use Word!  Not an option)

 I have searched far and wide and have found the 'solution' at
 (https://bugs.launchpad.net/zope2/+bug/143725) however, i can't get it to
 work for me with this installation

 _

 The changes suggested by the bug fix at the link are as follows:

 *** /usr/local/zope-2.8.4/lib/python/webdav/Resource.py 2006-06-13
 16:35:29.0 -0500
 --- /usr/local/zope-2.8.4/lib/python/webdav/Resource.py.orig2006-06-13
 16:20:17.0 -0500
 ***
 *** 197,203 
  self.dav__init(REQUEST, RESPONSE)
  RESPONSE.setHeader('Allow', ', '.join(self.__http_methods__))
  RESPONSE.setHeader('Content-Length', 0)
 -   RESPONSE.setHeader('MS-Author-Via', 'DAV')
  RESPONSE.setHeader('DAV', '1,2', 1)
  RESPONSE.setStatus(200)
  return RESPONSE
 --- 197,202 
 ***
 *** 594,606 
  def manage_DAVget(self):
  Gets the document source
  # The default implementation calls manage_FTPget
 !   # some things have manage_FTPget's that take REQUEST and RESPONSE
 !   # -- mengel 2006-06-13
 !   try:
 !   res = self.manage_FTPget()
 ! except:
 !   self.manage_FTPget({},{})
 ! return res

  def listDAVObjects(self):
  return []
 --- 593,599 
  def manage_DAVget(self):
  Gets the document source
  # The default implementation calls manage_FTPget
 ! return self.manage_FTPget()

  def listDAVObjects(self):
  return []
 ___

 Note that what it is doing is forcing a response of 'MS-Author-Via', 'DAV')

 what this is supposed to do is force Word to accept webDAV vs. it's only
 silly thing.  good in theory, but i couldn't get it to work

 After revising the file on the zope server, i then tried Word webDAV.  I
 monitored the network traffic to look for the OPTIONS response telling Word
 to use webDAV.  see attached txt file which has tcp stream while i tried to
 save .doc file.Note that, in the above change, the RESPONSE.setHeader
 ('MS-Author-Via', 'DAV') is supposed to be returned by Zope to force Word to
 work with webDAV, but this does not happen.

 This has been driving me crazy and any help would be greatly appreciated.

 Note:  i have attached the zope 'resource.py' as i have modified it based on
 the above link.  plz let me know if you can see what is wrong.


 Thanks,

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





-- 
Sidnei da Silva
Enfold Systems
http://enfoldsystems.com
Fax +1 832 201 8856
Office +1 713 942 2377 Ext 214
Skype zopedc
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] problem with the last commit of Five branches 1.4 for Collector #2307

2007-06-21 Thread Stefan H. Holek
FWIW, I have parked the fix on a branch [1][2] and will wait for Zope  
2.9.8 [3].


Stefan


[1] http://svn.zope.org/Products.Five/?rev=76908view=rev
[2] http://svn.zope.org/Products.Five/?rev=76909view=rev
[3] http://mail.zope.org/pipermail/zope-dev/2007-June/029454.html


On 21. Jun 2007, at 17:15, Lucie Lejard wrote:


I am using Zope 2.9.7, python 2.4.4 and plone 2.5.3.
I am also using Five-branch 1.4. Everything was working with no  
problem until this happen:
-- 
--

r76829 | shh | 2007-06-20 05:57:27 -0400 (Wed, 20 Jun 2007) | 2 lines

Collector #2307: ObjectCopiedEvent not dispatched to sublocations.


--
Anything that happens, happens.  --Douglas Adams


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

http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Problem with editing dtml in textarea

2004-03-23 Thread J Cameron Cooper
pieter claassen wrote:

For some reason if I do the following:

textarea name=col1 rows=30 cols=120 dtml-var
expr=_.getitem('1_col',0) html_quote/textarea
I can edit the html but all dtml is interpreted.

It has not been told to do otherwise.

I am trying to build a dtml page with which I can edit other pages:
1. Any recommendations on how to do this?
2. How do then overwrite the previous page with the edited code?
I could look up the proper API calls, but instead I will point out 
something more helpful in the long run: if the ZMI can do it, so can 
you. It's a big heap of examples. Go take a look.

Or look at the methods on the DTML objects and try to figure out the 
appropriate ones.

This list, btw, is for devlopment of Zope, and not with Zope. That's 
more appropriate on the main list.

   --jcc



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


Re: [Zope-dev] problem with TAL statements across multiple lines in zope 2.7b3

2003-12-12 Thread Stuart Bishop
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 13/12/2003, at 3:34 AM, Gerry Kirk wrote:

i didn't have this problem with zope 2.6.2. I have a TAL statement as 
follows:

tal:define = url python:test(item_typeinfo.getId() in	 
use_folder_contents, item.absolute_url()+'/folder_contents', 
item.absolute_url()+'/'+action);

this statement works if it is all on one line, but i get a syntax 
error if it is spread across multiple lines. is this a bug, or a 
change in TAL design?
Works for me. You aren't accidently splitting inside of a string are 
you?

- --  
Stuart Bishop [EMAIL PROTECTED]
http://www.stuartbishop.net/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (Darwin)

iD8DBQE/2puKAfqZj7rGN0oRAs9IAJ0SudIu20xmevZrSIHTPu2Aug9cDwCgiRFw
7x6vS4ticldQQ6H+Q4dL8xU=
=hBXD
-END PGP SIGNATURE-
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] problem locking up the db

2003-06-05 Thread Andreas Jung
Remove var/Data.fs.lock, restart Zope and promise to avoid cross-posts
in the future.
-aj

--On Mittwoch, 4. Juni 2003 11:37 Uhr -0700 chasee [EMAIL PROTECTED] 
wrote:

Hi:

I got this error, when starting the Zope server again.  I have had this
problem before, then I found out there was another processing I did not
kill still running the server. this time,  I made sure I had no other
processes that are running the server or making use of any files in Zope.
Please help!
 File /home/xxx/xxx/Zope-2.6.1/Zope-2.6.1-solaris-2.8-sparc/z2.py, line
582, in ?   File
/home/xxx/xxx/Zope-2.6.1/Zope-2.6.1-solaris-2.8-sparc/lib/python/Zope/__i
nit__.py, line 46, in startup (Object: startup)
  File
/home/xxx/xxx/Zope-2.6.1/Zope-2.6.1-solaris-2.8-sparc/lib/python/Zope/App
/startup.py, line 51, in startup   File
/home/xxx/xxx/Zope-2.6.1/Zope-2.6.1-solaris-2.8-sparc/lib/python/ZODB/Fil
eStorage.py, line 226, in __init__   File
/home/xxx/xxx/Zope-2.6.1/Zope-2.6.1-solaris-2.8-sparc/lib/python/ZODB/loc
k_file.py, line 33, in lock_file
StorageSystemError: Could not lock the database file.  There must be
another process that has opened the file.


-
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.




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


Re: [Zope-dev] Problem with Zope 2.6.0 and ZShell

2002-11-19 Thread Guido van Rossum
   Module sre, line 168, in ?
 AttributeError: 'module' object has no attribute 'hexversion'
 *
 
 This seems to be deep in Python standard library.

Not that deep actually.  sre.py line 168 is this:

if sys.hexversion = 0x0202:

 Since I don't actually use Zope 2.6, does anyone have an idea on 
 where the problem may come from ?

You're using restricted mode (the rexec module) and this apparently
doesn't provide sys.hexversion.  This is a shallow bug; it's already
fixed in Python 2.3 (CVS).

 Does any of you use ZShell with Zope 2.6 ?
 
 It works fine in 2.5.1 with Python 2.1.3, so something has
 changed somewhere which breaks it.

Probably those versions of Python didn't have the test for
sys.hexversion; it's testing whether this is Python 2.2 or higher.

A workaround would be to set sys.hexversion to 0x0202 (or to 0 if
you're not sure which Python version you're using) before importing
sre for the first time.

--Guido van Rossum (home page: http://www.python.org/~guido/)

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



Re: [Zope-dev] Problem with Zope 2.6.0 and ZShell

2002-11-19 Thread Jerome Alet
Hi,

On Tue, Nov 19, 2002 at 01:54:56PM -0500, Guido van Rossum wrote:
 
  Since I don't actually use Zope 2.6, does anyone have an idea on 
  where the problem may come from ?
 
 You're using restricted mode (the rexec module) and this apparently
 doesn't provide sys.hexversion.  This is a shallow bug; it's already
 fixed in Python 2.3 (CVS).
 ... 
 Probably those versions of Python didn't have the test for
 sys.hexversion; it's testing whether this is Python 2.2 or higher.
 
 A workaround would be to set sys.hexversion to 0x0202 (or to 0 if
 you're not sure which Python version you're using) before importing
 sre for the first time.

Thanks for your answer.

Unfortunately I never import sre.

I import re, then rexec in the main program, 
then in the restricted code I add the 
os and os.path modules, and the resticted code
then import the glob modules and calls its glob
method.

So should I set sys.hexversion *before* my re and rexec
imports in the main program, or add the sys module and
a fake hexversion value in the restricted code ?

thanks in advance

Jerome Alet

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



Re: [Zope-dev] Problem with Zope 2.6.0 and ZShell

2002-11-19 Thread Guido van Rossum
 On Tue, Nov 19, 2002 at 01:54:56PM -0500, Guido van Rossum wrote:
  
   Since I don't actually use Zope 2.6, does anyone have an idea on 
   where the problem may come from ?
  
  You're using restricted mode (the rexec module) and this apparently
  doesn't provide sys.hexversion.  This is a shallow bug; it's already
  fixed in Python 2.3 (CVS).
  ... 
  Probably those versions of Python didn't have the test for
  sys.hexversion; it's testing whether this is Python 2.2 or higher.
  
  A workaround would be to set sys.hexversion to 0x0202 (or to 0 if
  you're not sure which Python version you're using) before importing
  sre for the first time.
 
 Thanks for your answer.
 
 Unfortunately I never import sre.
 
 I import re, then rexec in the main program, 
 then in the restricted code I add the 
 os and os.path modules, and the resticted code
 then import the glob modules and calls its glob
 method.
 
 So should I set sys.hexversion *before* my re and rexec
 imports in the main program, or add the sys module and
 a fake hexversion value in the restricted code ?

In the restricted code, right at the start.  Restricted code loads its
own copy of each module it uses.  The glob module uses re, which uses
sre.

--Guido van Rossum (home page: http://www.python.org/~guido/)

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



Re: [Zope-dev] Problem testing CatalogAware class

2002-06-07 Thread Steve Alexander

Vincenzo Di Somma wrote:
 Hi all,
 does someone knows about problems testing CatalogAware subclasses ?
 I have unit tests for my class and work well, but if I subclass also
 from CatalogAware I receive:

Don't use CatalogAware, use CatalogPathAware.

--
Steve Alexander




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



Re: [Zope-dev] problem adding ZClass instances via DTML

2002-02-26 Thread Dieter Maurer

Mark James Adams writes:
  I'm following the instructions in Adding ZClass Instances 
  Programmatically (http://www.zope.org/Members/taz/addZClasses), but 
  Zope always returns an error.
  
  Using the code from a DTMLMethod in another ZClass in the same product:
  
  dtml-with manage_addProduct['MyProduct']
  dtml-call MyZClass_add(_.None, NoRedir=1)
  /dtml-with
Where is the second positional argument for DTML objects?

Please read Calling DTML objects in

  http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html

to avoid such errors in the future.


Dieter

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



Re: [Zope-dev] problem adding ZClass instances via DTML

2002-02-26 Thread Gilles Lenfant

Mark,

It seems you forget the id of your new object !!
I use do do it in Python script (easier for testing initial data from request). But 
you can translate in DTML if you prefer...
# Test initial data from REQUEST and redirect somewhere if required
...
# Create the new ZClass based object
newobject = 
somefolderishobject.manage_addProduct['MyProduct'].MyZClass.createInObjectManager(newId,
 context.REQUEST)
# May add computed values to properties
props = {}
props['created'] = DateTime()
props['creator'] = context.REQUEST.AUTHENTICATED_USER.getUserName()
...
newobject.propertysheets.mypropertysheet.manage_changeProperties(props)
# Redirect somewhere or return the object or whatever

HTH

--Gilles
- Original Message - 
From: Mark James Adams [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 26, 2002 8:25 PM
Subject: [Zope-dev] problem adding ZClass instances via DTML


: I'm following the instructions in Adding ZClass Instances 
: Programmatically (http://www.zope.org/Members/taz/addZClasses), but 
: Zope always returns an error.
: 
: Using the code from a DTMLMethod in another ZClass in the same product:
: 
: dtml-with manage_addProduct['MyProduct']
: dtml-call MyZClass_add(_.None, NoRedir=1)
: /dtml-with
: 
: I get the error:
: 
: File /usr/local/Zope/lib/python/DocumentTemplate/DT_Util.py, line 339, 
: in eval (Object: MyZClass.createInObjectManager(REQUEST['id'], REQUEST)) 
: (Info: REQUEST) File , line 0, in ? NameError: MyZClass
: 
: So this is clearly having a problem finding MyZClass from the 
: MyZClass_add method.
: 
: I then noticed that, according to the HowTo, if you are instantiating a 
: ZClass from within another ZClass, you only need the code:
: 
: dtml-call MyZClass_add(_.None, NoRedir=1)
: 
: However, this gives the error:
: 
: File /usr/local/Zope/lib/python/DocumentTemplate/DT_Util.py, line 339, 
: in eval (Object: MyZClass_add(_.None, NoRedir=1)) (Info: _) File , line 
: 0, in ? NameError: MyZClass_add
: 
: Any suggestions?
: 
: Thanks.
: 
: --
: Mark James Adams
: [EMAIL PROTECTED] | [EMAIL PROTECTED]
: 
: 
: 
: ___
: Zope-Dev maillist  -  [EMAIL PROTECTED]
: http://lists.zope.org/mailman/listinfo/zope-dev
: **  No cross posts or HTML encoding!  **
: (Related lists - 
:  http://lists.zope.org/mailman/listinfo/zope-announce
:  http://lists.zope.org/mailman/listinfo/zope )
: 



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



Re: [Zope-dev] problem in adding objects to the ZCatalog

2002-01-24 Thread Chris McDonough

Hi Sanjay,

I *think* this is a bug that was fixed in later versions of 2.4.  Would 
you mind trying out 2.5.0b4?

sanjay singh wrote:
 Hi all,
 
  I m installing Zope 4.2.1 on Windows 2000.After getting it 
 installed, and starting , when i try to add objects to the Z Catalog 
 which is created one level down the site root folder(/epsite), when i 
 select dtml documents without selecting the id  and i click Find and 
 Catalog, its giving the following error :
 
  
 
  
 
 
 Zope Error
 
 Zope has encountered an error while publishing this resource.
 
 *Error Type: AttributeError*
 *Error Value: __call__*
 
 
 
 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.
 
 [Powered by Zope] http://www.zope.org/Credits
 
 Traceback (innermost last):
   File C:\PROGRA~1\EIP\lib\python\ZPublisher\Publish.py, line 223, in publish_module
   File C:\PROGRA~1\EIP\lib\python\ZPublisher\Publish.py, line 187, in publish
   File C:\PROGRA~1\EIP\lib\python\Zope\__init__.py, line 226, in 
zpublisher_exception_hook
 (Object: LockableItem)
   File C:\PROGRA~1\EIP\lib\python\ZPublisher\Publish.py, line 171, in publish
   File C:\PROGRA~1\EIP\lib\python\ZPublisher\mapply.py, line 160, in mapply
 (Object: manage_catalogFoundItems)
   File C:\PROGRA~1\EIP\lib\python\ZPublisher\Publish.py, line 112, in call_object
 (Object: manage_catalogFoundItems)
   File C:\PROGRA~1\EIP\lib\python\Products\ZCatalog\ZCatalog.py, line 393, in 
manage_catalogFoundItems
 (Object: LockableItem)
   File C:\PROGRA~1\EIP\lib\python\Products\ZCatalog\ZCatalog.py, line 727, in 
ZopeFindAndApply
 (Object: LockableItem)
   File C:\PROGRA~1\EIP\lib\python\Products\ZCatalog\ZCatalog.py, line 727, in 
ZopeFindAndApply
 (Object: LockableItem)
   File C:\PROGRA~1\EIP\lib\python\Products\ZCatalog\ZCatalog.py, line 715, in 
ZopeFindAndApply
 (Object: LockableItem)
   File C:\PROGRA~1\EIP\lib\python\Products\ZCatalog\ZCatalog.py, line 498, in 
catalog_object
 (Object: LockableItem)
   File C:\PROGRA~1\EIP\lib\python\Products\ZCatalog\Catalog.py, line 381, in 
catalogObject
   File C:\PROGRA~1\EIP\lib\python\Products\ZCatalog\Catalog.py, line 494, in 
recordify
 AttributeError: (see above)
 
  
 
 Also tell me how to select and add all documents to the Z catalog and get it 
searchable.
 
 Do tell me fast.
 
  
 
 thanks in advance,
 
 Sanjay
 
  
 


-- 
Chris McDonoughZope Corporation
http://www.zope.org http://www.zope.com
Killing hundreds of birds with thousands of stones


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



Re: [Zope-dev] Problem in strating zope server

2002-01-21 Thread Chris McDonough

Man, that was painful to read.  *Please* send plaintext, not HTML.

Your server appears to be listening on port 8080.  Looks like a normal
startup to me.

I suspect you're trying to access Zope via localhost which won't work in
your case because you're limiting the port to something via -P.  Try this
instead:

./start -u ep


- Original Message -
From: sanjay singh
To: [EMAIL PROTECTED]
Sent: Thursday, February 21, 2002 1:33 AM
Subject: [Zope-dev] Problem in strating zope server


Hi all,
 I m installing Zope 4.2.1 on linux.After getting it installed, when
its strated it strats and gives the port it is listening to.
But when i access it through browser then there is no connection established
with the server.

It gives following output while installing and starting.


[root@EP Zope2.4.1]# cd var
[root@EP var]# ls -l
total 80
-rw-r--r--1 506  users   75448 Jan 21  2001 Data.fs.in

[root@EP Zope2.4.1]# ls -l
total 92
drwxr-xr-x2 506  users4096 Sep  4 19:18 Extensions
-rw-r--r--1 506  users3026 Sep  4 18:54 LICENSE.txt
-rw-r--r--1 506  users 987 Apr 29  1999 README.txt
drwxr-xr-x4 506  users4096 Sep  4 19:18 ZServer
drwxr-xr-x2 506  users4096 Sep  4 19:18 bin
drwxr-xr-x4 506  users4096 Sep  4 19:18 doc
drwxr-xr-x2 506  users4096 Sep  4 19:18 import
drwxr-xr-x2 506  users4096 Sep  4 19:18 inst
-rwxr-xr-x1 506  users 225 Jul 23  1999 install
drwxr-xr-x4 506  users4096 Sep  4 19:18 lib
drwxr-xr-x8 506  users4096 Sep  4 19:18 pcgi
drwxr-xr-x2 506  users4096 Sep  4 19:18 utilities
drwxrwxr-x2 506  users4096 Sep  4 19:18 var
-rw-r--r--1 506  users   25607 Jun 18 19:19 z2.py
-rw-r--r--1 506  users9546 Dec  8  2000 zpasswd.py

##
[root@EP Zope2.4.1]# ./install -u ep -g users


--
Compiling python modules
  File /home/ep/zope/Zope2.4.1/lib/python2.1/test/nocaret.py, line 2
[x for x in x] = x
SyntaxError: can't assign to list comprehension
SyntaxError: from __future__ imports must occur at the beginning of the file
(test_future3.py, line 3)
SyntaxError: from __future__ imports must occur at the beginning of the file
(test_future4.py, line 3)
SyntaxError: from __future__ imports must occur at the beginning of the file
(test_future5.py, line 4)
SyntaxError: from __future__ imports must occur at the beginning of the file
(test_future6.py, line 3)
SyntaxError: from __future__ imports must occur at the beginning of the file
(test_future7.py, line 3)

--

--
creating default inituser file
Note:
The initial user name and password are 'admin'
and 'IaejsWAa'.

You can change the name and password through the web
interface or using the 'zpasswd.py' script.

chgrp users /home/ep/zope/Zope2.4.1/inituser
chown ep /home/ep/zope/Zope2.4.1/inituser
chmod 0660 /home/ep/zope/Zope2.4.1/inituser
chgrp users /home/ep/zope/Zope2.4.1/var
chown ep /home/ep/zope/Zope2.4.1/var
chmod 0771 /home/ep/zope/Zope2.4.1/var

--
setting dir permissions

--
creating default database
chgrp users /home/ep/zope/Zope2.4.1/var/Data.fs
chown ep /home/ep/zope/Zope2.4.1/var/Data.fs
chmod 0660 /home/ep/zope/Zope2.4.1/var/Data.fs

--
Writing the pcgi resource file (ie cgi script),
/home/ep/zope/Zope2.4.1/Zope.cgi
chgrp users /home/ep/zope/Zope2.4.1/Zope.cgi
chown ep /home/ep/zope/Zope2.4.1/Zope.cgi
chmod 0775 /home/ep/zope/Zope2.4.1/Zope.cgi

--
Creating start script, start
chgrp users /home/ep/zope/Zope2.4.1/start
chown ep /home/ep/zope/Zope2.4.1/start
chmod 0771 /home/ep/zope/Zope2.4.1/start

--
Creating stop script, stop
chgrp users /home/ep/zope/Zope2.4.1/stop
chown ep /home/ep/zope/Zope2.4.1/stop
chmod 0771 /home/ep/zope/Zope2.4.1/stop

--

Done!

##
[root@EP Zope2.4.1]#
[root@EP Zope2.4.1]# ls -l
total 136
drwxrwxr-x2 ep   users4096 Sep  4 19:18 Extensions
-rw-r--r--1 506  users3026 Sep  4 18:54 LICENSE.txt
-rw-r--r--1 506  users 987 

Re: [Zope-dev] problem to rename folder

2001-10-24 Thread Steve Alexander

Johan Beauce wrote:

 Hello,
 
 I have a little problem. I use this function to rename an object in my site
 (file or folder).
 It work perfectly with file but I have an error when I try to rename a
 folder 
 I think the error is from PARENT[0], so do you have a solution ???
 
 dtml-let objRename=_.getattr(PARENTS[0], _['idName'])
dtml-call
 objRename.manage_renameObjects([idName],[newId],getWay(REQUEST.PATH_INFO))
 
 /dtml-let
 
 Thanks a lot, 
 Johan.


Johan,

You sent this message to the [EMAIL PROTECTED] list and also to the 
[EMAIL PROTECTED] list. Do not do that. Send your message to one mailing 
list only.

Because your message is about using Zope and DTML rather than developing 
the internals of Zope, your should have sent your message to only the 
[EMAIL PROTECTED] list.

 
This email and any files transmitted with it are CONFIDENTIAL and
 intended solely for the use of the individual or entity to whom they are
 addressed. 
 
Any unauthorised copying, disclosure, or distribution of the material
 within this email is strictly forbidden. 


Do you realize that you just sent this email to a public mailing list, 
with archives available on the world wide web?

--
Steve Alexander
Software Engineer
Cat-Box limited




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



Re: [Zope-dev] problem with catalog awareness

2001-09-13 Thread Leonardo Rochael Almeida

If you are using ZClasses with default constructors, this is most likely due
to a Product factory method updating a ZClass instance *after* adding it to
a folder. CatalogAware will index the instance in the ZCatalog before it
gets its fields updated in the constructor, which means that what you get
cataloged is a mostly empty object (where 'empty' means 'with default
values'). You should call reindex_object() on the ZClass instance after
changing it in the constructor, and also everytime you change it.

This happens because CatalogAware doesn't track changes to objects. It only
tracks removal, insertion and renaming (I think) which means that when you
cut/copy and then paste the object, the pasted object works as you expected.

Cheers, Leo.

On Thu, Sep 13, 2001 at 12:56:25PM +, Lukas Maag wrote:
 hi all,
 
 i made a catalog aware class and want to use it with a catalog. i'm running
 zope 2.1.4 on a nt server (sp5).
 when i add the catalog aware object, it is automatically listed in the catalogs
 'catalog' tab, but the indexes are not automatically 
 updated (when i want to search them with a search interface, they do not exist).
 
 strange thing: when i copy the object in the manage enviroment, an paste it
 afterwards at same place, everything work fine!
 
 can someone help me!
 thanx

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



Re: [Zope-dev] Problem starting Zope

2001-07-06 Thread Dieter Maurer

Jimmie Houchin writes:
  Installing Zope via wo_pcgi.py and then starting Zope via ./z2.py gives
  me this:
  
  the -h output
  
  -W port
 The WebDAV: command not found
  ../z2.py: line 288: syntax error near unexpected token
  `sys.path.insert(0,'
  ../z2.py: line 288: `sys.path.insert(0, '%s/lib/python' % swhome)'
Someone broke the code near line 288 of z2.py.

Look at it.
You should be especially worried about indentation.
   Convert tab to spaces and see whether the indentation
   is right.


Dieter

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



Re: [Zope-dev] Problem starting Zope

2001-07-06 Thread Jimmie Houchin

Thanks Dieter for the reply.
Sorry for the delay in the reply. The problem was on my home machine and I've
been at work.

I don't know that anyone broke code, other than Netscape breaking my lines in
the message. :)

I duplicated the message by typing it into Netscape.

Look at the reply to myself for more info.

I still don't know where there error is but it doesn't work with the cvs
Python.

Thanks again.

Jimmie Houchin


Dieter Maurer wrote:
 
 Jimmie Houchin writes:
   Installing Zope via wo_pcgi.py and then starting Zope via ./z2.py gives
   me this:
  
   the -h output
   
   -W port
  The WebDAV: command not found
   ../z2.py: line 288: syntax error near unexpected token
   `sys.path.insert(0,'
   ../z2.py: line 288: `sys.path.insert(0, '%s/lib/python' % swhome)'
 Someone broke the code near line 288 of z2.py.
 
 Look at it.
 You should be especially worried about indentation.
Convert tab to spaces and see whether the indentation
is right.
 
 Dieter
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )

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



Re: [Zope-dev] Problem starting Zope

2001-07-06 Thread Jimmie Houchin

Updating my previous message.

The problem must be in the cvs version of Python.
I downloaded the tarball of 2.1, compiled.
Recompiled Zope.
./start
Up and running. :)

In addition to the error below when doing ./z2.py I got this when doing
./start with the cvs Python:

./start
/usr/local/lib/python2.2/FCNTL.py:7: DeprecationWarning: ... (don't want to
type it all)
ditto...
-
2001-07-06... PANIC(300) z2 Startup exception
Traceback ...
  (Object: ZLogger)
  File /usr/local/zope/Zope2/lib/python/Zope/__init__.py, line 95, in ?
  ...
(Object: Transformer)
  ...
  File
/usr/local/zope/Zope2/lib/python/RestrictedPython/compiler/transformer.py,
line 695, in com_node
KeyError: 313


Lots not included.

Hopefully it is enough.
I can duplicate if necessary to provide more information.


Does anyone have a way to copy text from a GnomeTerminal window?
Or is there a better way that I can do this to be able to provide accurate
information?
Anything I can do to assist better, I would be happy to do.

Thanks again.

Jimmie Houchin




Jimmie Houchin wrote:
 
 Hello,
 
 After messing around for a long time, I am finally beginning to develop
 my website. :)
 I am having problems starting Zope. I've never had problems starting
 Zope.
 
 RH 7.1
 I have an updated cvs Zope installed.
 I have an updated cvs Python installed.
 It is the cvs Python which is called on the commandline or via
 /usr/local/bin/python.
 
 Installing Zope via wo_pcgi.py and then starting Zope via ./z2.py gives
 me this:
 
 the -h output
 ...
 -W port
The WebDAV: command not found
 ./z2.py: line 288: syntax error near unexpected token
 `sys.path.insert(0,'
 ./z2.py: line 288: `sys.path.insert(0, '%s/lib/python' % swhome)'
 
 I don't know if I've encountered a bug or did something wrong.
 Any suggestions appreciated.
 
 Thanks,
 
 Jimmie Houchin
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )

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



Re: [Zope-dev] Problem starting Zope

2001-07-06 Thread Andreas Jung

Zope 2.4 will not (yet) run with Python 2.2 because
there is a byte-code related problem. Please use Python 2.1 instead.

Andreas
- Original Message -
From: Jimmie Houchin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 06, 2001 7:03 PM
Subject: Re: [Zope-dev] Problem starting Zope


 Updating my previous message.

 The problem must be in the cvs version of Python.
 I downloaded the tarball of 2.1, compiled.
 Recompiled Zope.
 ./start
 Up and running. :)

 In addition to the error below when doing ./z2.py I got this when doing
 ./start with the cvs Python:

 ./start
 /usr/local/lib/python2.2/FCNTL.py:7: DeprecationWarning: ... (don't want
to
 type it all)
 ditto...
 -
 2001-07-06... PANIC(300) z2 Startup exception
 Traceback ...
   (Object: ZLogger)
   File /usr/local/zope/Zope2/lib/python/Zope/__init__.py, line 95, in ?
   ...
 (Object: Transformer)
   ...
   File
 /usr/local/zope/Zope2/lib/python/RestrictedPython/compiler/transformer.py,
 line 695, in com_node
 KeyError: 313


 Lots not included.

 Hopefully it is enough.
 I can duplicate if necessary to provide more information.


 Does anyone have a way to copy text from a GnomeTerminal window?
 Or is there a better way that I can do this to be able to provide accurate
 information?
 Anything I can do to assist better, I would be happy to do.

 Thanks again.

 Jimmie Houchin




 Jimmie Houchin wrote:
 
  Hello,
 
  After messing around for a long time, I am finally beginning to develop
  my website. :)
  I am having problems starting Zope. I've never had problems starting
  Zope.
 
  RH 7.1
  I have an updated cvs Zope installed.
  I have an updated cvs Python installed.
  It is the cvs Python which is called on the commandline or via
  /usr/local/bin/python.
 
  Installing Zope via wo_pcgi.py and then starting Zope via ./z2.py gives
  me this:
 
  the -h output
  ...
  -W port
 The WebDAV: command not found
  ./z2.py: line 288: syntax error near unexpected token
  `sys.path.insert(0,'
  ./z2.py: line 288: `sys.path.insert(0, '%s/lib/python' % swhome)'
 
  I don't know if I've encountered a bug or did something wrong.
  Any suggestions appreciated.
 
  Thanks,
 
  Jimmie Houchin
 
  ___
  Zope-Dev maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope-dev
  **  No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope )

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




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



Re: [Zope-dev] [Problem] Zope/Python2.x incompatibility

2001-07-02 Thread Toby Dickenson

On Sun, 1 Jul 2001 16:15:40 +0200 (CEST), Dieter Maurer
[EMAIL PROTECTED] wrote:

I just met the following problem caused by a misfortunate name
clash between Python2.x and Zope:

The *real* problem here (IMO, and I know I am close to alone on this
one ;-) is overstreaching dtml beyone what it is good for; that is
trivial document templating.

dtml-in is a particularly bad at polluting the dtml namespace (which
is particularly serious because you have only got one of them)



Toby Dickenson
[EMAIL PROTECTED]

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



Re: [Zope-dev] [Problem] Zope/Python2.x incompatibility

2001-07-02 Thread Dieter Maurer

Toby Dickenson writes:
  On Sun, 1 Jul 2001 16:15:40 +0200 (CEST), Dieter Maurer
  [EMAIL PROTECTED] wrote:
  
  I just met the following problem caused by a misfortunate name
  clash between Python2.x and Zope:
  
  The *real* problem here (IMO, and I know I am close to alone on this
  one ;-) is overstreaching dtml beyone what it is good for; that is
  trivial document templating.
My task was a trivial presentation task: displaying the properties
of an object...

  dtml-in is a particularly bad at polluting the dtml namespace (which
  is particularly serious because you have only got one of them)
It makes the presentation of database queries really easy


Dieter

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



RE: [Zope-dev] Problem with Hotfix 2000-10-11 on 2.1.6

2001-03-30 Thread Brian Lloyd

 If installed on 2.1.6, the product shows up as broken, since it
 tries to run
 "from OFS.ObjectManager import aq_base", which fails, since aq_base wasn't
 available in ObjectManager before 2.2.1 (!).

 Therefore I guess the Hotfix won't work for any versions prior to 2.2.1.
 According to the README, those versions are still vulnerable.


 Could somebody give me a hint if and how it's possible to backport the
 Hotfix to Zope 2.1.6 ?

You could add this to the hotfix module:

def aq_base(object):
  return getattr(object, 'aq_base', object)

...and use that instead of importing it.


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909
Digital Creations  http://www.digicool.com




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



Re: [Zope-dev] Problem with Hotfix 2000-10-11 on 2.1.6

2001-03-29 Thread Chris Withers

Gregor Hoffleit wrote:
 
 Could somebody give me a hint if and how it's possible to backport the
 Hotfix to Zope 2.1.6 ?

Surely it'd be better to move you servers forward to 2.2.5 or maybe 2.3.1 when
it's out?!

cheers,

Chris

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



Re: [Zope-dev] Problem with Hotfix 2000-10-11 on 2.1.6

2001-03-29 Thread Gregor Hoffleit

On Thu, Mar 29, 2001 at 12:34:16PM +0100, Chris Withers wrote:
 Gregor Hoffleit wrote:
  
  Could somebody give me a hint if and how it's possible to backport the
  Hotfix to Zope 2.1.6 ?
 
 Surely it'd be better to move you servers forward to 2.2.5 or maybe 2.3.1 when
 it's out?!

It's about backwards compatibility. Debian's last release had a 2.1.6
package in it, and our release managers simply won't accept a new upstream
version (i.e. 2.2.5 or 2.3) as security fix. Therefore, I have to try to
backport security fixes to 2.1.6, silly as it might be, for those of our
users that prefer stability over featurism ;-)

Rest assured, though, that the next Debian *release* will feature 2.3.x.

At this point, it simply stroke me as odd that the README is quite
inaccurate, and it sounds as if there should be a simple for for this hole
in 2.1.6, too.

Gregor

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



Re: [Zope-dev] Problem with Hotfix 2000-10-11 on 2.1.6

2001-03-29 Thread Gregor Hoffleit

On Thu, Mar 29, 2001 at 10:10:50PM +1000, Zac Stevens wrote:
 Howdy,
 
 On Thu, Mar 29, 2001 at 01:28:13PM +0200, Gregor Hoffleit wrote:
 | I'm having trouble installing Hotfix_2000-10-11 on Zope 2.1.6, although the
 | README says: "The hotfix will work for all versions of Zope 2.2.0 and
 | higher."
 
 I think you're just making a minor braino here - 2.1.6 isn't higher than
 2.2.0
 
 The Readme is somewhat ambiguous though - it starts off stating that "all
 versions up to and including 2.2.2" are affected, but then recommends "Zope
 2.2.x" sites upgrade.  Perhaps it isn't even a genuine issue for 2.1.6?
 (I don't know)

Ooops, sorry, sorry, sorry.

I had read the start of the README (like you wrote: 'Zope versions up to and
including Zope 2.2.2.'), but I had quoted and paragraph that indeed implied
an answer to my question ('will work for all versions of Zope 2.2.0 and
higher.').

So 2.1.6 ought to be vulnerable as well, but that Hotfix won't work for it.


Gregor


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



'All Hotfixes' page (was Re: [Zope-dev] Problem with Hotfix 2000-10-11 on 2.1.6)

2001-03-29 Thread Gregor Hoffleit

On Thu, Mar 29, 2001 at 02:34:47PM +0200, Gregor Hoffleit wrote:
 I had read the start of the README (like you wrote: 'Zope versions up to and
 including Zope 2.2.2.'), but I had quoted and paragraph that indeed implied
 an answer to my question ('will work for all versions of Zope 2.2.0 and
 higher.').

A last word on this: http://www.zope.org/Products/Zope/hotfixes is really a
mess and very hard to read. Would it be possible to redesign that page so
that it's more obvious which Hotfixes apply to which version. Currently the
page is so flat that it's even hard to tell which paragraph applies to which
Hotfix.

Gregor


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



Re: [ZWeb] 'All Hotfixes' page (was Re: [Zope-dev] Problem with Hotfix 2000-10-11 on 2.1.6)

2001-03-29 Thread Martijn Pieters

On Thu, Mar 29, 2001 at 03:15:26PM +0200, Gregor Hoffleit wrote:
 On Thu, Mar 29, 2001 at 02:34:47PM +0200, Gregor Hoffleit wrote:
  I had read the start of the README (like you wrote: 'Zope versions up to and
  including Zope 2.2.2.'), but I had quoted and paragraph that indeed implied
  an answer to my question ('will work for all versions of Zope 2.2.0 and
  higher.').
 
 A last word on this: http://www.zope.org/Products/Zope/hotfixes is really a
 mess and very hard to read. Would it be possible to redesign that page so
 that it's more obvious which Hotfixes apply to which version. Currently the
 page is so flat that it's even hard to tell which paragraph applies to which
 Hotfix.

Have a look at http://www.zope.org/Products/Zope/hotfixes, I think it is
exactly what you need.

-- 
Martijn Pieters
| Software Engineer  mailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
-

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



Re: [ZWeb] 'All Hotfixes' page (was Re: [Zope-dev] Problem with Hotfix 2000-10-11 on 2.1.6)

2001-03-29 Thread Martijn Pieters

On Thu, Mar 29, 2001 at 01:27:08PM -0500, Shane Hathaway wrote:
  Have a look at http://www.zope.org/Products/Zope/hotfixes, I think it is
  exactly what you need.
 
 Huh?  You repeated the URL he supplied... and I'd like to know if there
 is indeed a better URL.

Duh. Copy, paste, send. Who cares about editing the URL. :0

The correct URL is:

  http://www.zope.org/Products/Zope

-- 
Martijn Pieters
| Software Engineer  mailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
-

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



Re: [ZWeb] 'All Hotfixes' page (was Re: [Zope-dev] Problem with Hotfix 2000-10-11 on 2.1.6)

2001-03-29 Thread Charlie Blanchard

On Thu, Mar 29, 2001 at 08:33:50PM +0200, Martijn Pieters wrote:
...
 Duh. Copy, paste, send. Who cares about editing the URL. :0
 
 The correct URL is:
 
   http://www.zope.org/Products/Zope
 
alertZope Newbie Here/alert

After looking at the page referenced above, one question remains
unclear to me. There are for example two Hotfixes listed as
applying to "= 2.3.1b1" 

It is not clear to me if the more recent fix _includes_ the
earlier fix or whether _both_ fixes need to be applied. 

Something in the text one way or another explaining Hotfix
application policy might help clear this up for those of us new
to the "Zope Way." (-:

tia,

-- 
charlie blanchard
http://baldguru.com/
"What is freedom of expression?
 Without the freedom to offend, it ceases to exist."
 -Salman Rushdie

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



Re: [Zope-dev] Problem upgrading to Zope2.3

2001-02-16 Thread Shane Hathaway

"Jay, Dylan" wrote:
 
 I did a clean install (on w2k), then copied across my products and Data.fs
 etc and when I restarted I got the following when I tried to access
 manage_main on the root folder. Funny thing is this doesn't happen on any
 other folder.
 
 Error type: SystemError
 Error value: Failed to import class Guard from module
 Products.PythonMethod.zbytecodehacks.VSExec
 
...
 I don't even have any PythonMethods in my base directory. Why is that
 something obscure as this could trip up the whole management interface?

Try this:

(1) Upgrade to 2.3.1 beta 1 (released yesterday).  There's an relevant
note in the changelog:

  "Hardened ZMI contents view against subobjects w/ flaky 'get_size'
(Collector #1900)"

(2) If that doesn't work, temporarily reinstall PythonMethod and report
back so we can fix the bug.

Shane

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



Re: [Zope-dev] Problem: manage_workspace redirects to index_html

2001-02-04 Thread Evan Simpson

From: "Dylan Jay" [EMAIL PROTECTED]
 I'm using IE 5.01 on w2k.

The current 5.01 version of IE doesn't do basic authentication correctly
(or, at least, the way nearly every other version, and browser, does it).
Try getting 5.5sp1 instead.

Cheers,

Evan @ digicool  4-am




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



Re: [Zope-dev] Problem using External Method

2001-01-24 Thread Shane Hathaway

"Espen S. Frederiksen" wrote:
 
 The problem occur when I try to split up the function as
 shown below. I would like to store the data list, update it
 if nessesary and return it when appropriate. Am I making it
 unessesary complex when I use the class? Is there maybe a
 way to declare the data list global within the module? Or
 is there another, possibly different, way to do this?

Take out all the "import __main__" statements and you should be fine.

Python lets you access two namespaces at once: the "local" namespace and
the "global" namespace.  Were it not for the global namespace, you would
need to do something like "import __main__".  But since globals are
there, everything available at the module level is also available at the
function level.

Shane

 class Testclass:
 def setdata(self,val1,val2,val3):
 self.data = [val1,val2,val3]
 def updatedata(self, index):
 self.data[index] = self.data[index]+1
 def display(self):
 return self.data
 
 x = Testclass()
 
 def createdata(var1, var2, var3):
 import __main__
 x.setdata(var1, var2, var3)
 
 def update(index):
 import __main__
 x.updatedata(index)
 
 def returndata():
 import __main__
 return x.display()

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




Re: [Zope-dev] Problem using External Method

2001-01-24 Thread Shane Hathaway

On Wed, 24 Jan 2001, Espen Sorbye Frederiksen wrote:
 I did what you suggested, but I am still a bit stuck. Maybe I call them
 wrong in my code. I use the call below but get an error.

 dtml-call expr="createdata('test1','test2','test3')"
 dtml-var expr="returndata()"

 Error Type: AttributeError
 Error Value: data

 any suggestions what I do wrong,

I suggest you run Zope in "-D" mode so you can see tracebacks easily.
They can pinpoint the exact source of problems like this.

Shane


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




Re: [Zope-dev] Problem using External Method

2001-01-23 Thread Chris McDonough

Espen,

The files that external methods actually live in are not Python modules,
like normal Python modules.  Though I haven't tried your example, it's
likely that your reference to __main__ is confusing the external method
machinery.  Additionally, the output of "print" doesn't go to the remote
browser, it instead goes to the console.  You need to return a value to the
caller for it to be displayed on the remote browser.

Try instead (as an example):

class Testclass:
def setdata(self,val1,val2,val3):
self.data = [val1,val2,val3]
def updatedata(self, index):
self.data[index] = self.data[index]+1
def display(self):
print self.data

def createdata():
x = Testclass()
x.setdata(10, 20, 30)
x.updatedata(2)
return x.display()

- Original Message -
From: "Espen Sorbye Frederiksen" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 23, 2001 5:52 PM
Subject: [Zope-dev] "Problem" using External Method


 The module below works using the python compiler
 class Testclass:
 def setdata(self,val1,val2,val3):
 self.data = [val1,val2,val3]
 def updatedata(self, index):
 self.data[index] = self.data[index]+1
 def display(self):
 print self.data

 x = Testclass()
 def createdata():
 import __main__
 __main__.x.setdata(10, 20, 30)
 __main__.x.updateLog(2)
 __main__.x.display()

 createdata()
 [10,20,31]

 However if I try to add it as an External Method( id= createdata) it
 doesn't
 seem to work. I've tried to call it using dtml-var/call createdata
 without success. Any suggestions what I do wrong.
 I am grateful for all comments,

 Espen


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




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




Re: [Zope-dev] Problem using External Method

2001-01-23 Thread Chris McDonough

Ooops, replace "print self.data" with "return self.data" in the display
method of my Testclass.


- Original Message -
From: "Chris McDonough" [EMAIL PROTECTED]
To: "Espen Sorbye Frederiksen" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, January 23, 2001 6:46 PM
Subject: Re: [Zope-dev] "Problem" using External Method


 Espen,

 The files that external methods actually live in are not Python modules,
 like normal Python modules.  Though I haven't tried your example, it's
 likely that your reference to __main__ is confusing the external method
 machinery.  Additionally, the output of "print" doesn't go to the remote
 browser, it instead goes to the console.  You need to return a value to
the
 caller for it to be displayed on the remote browser.

 Try instead (as an example):

 class Testclass:
 def setdata(self,val1,val2,val3):
 self.data = [val1,val2,val3]
 def updatedata(self, index):
 self.data[index] = self.data[index]+1
 def display(self):
 print self.data

 def createdata():
 x = Testclass()
 x.setdata(10, 20, 30)
 x.updatedata(2)
 return x.display()

 - Original Message -
 From: "Espen Sorbye Frederiksen" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, January 23, 2001 5:52 PM
 Subject: [Zope-dev] "Problem" using External Method


  The module below works using the python compiler
  class Testclass:
  def setdata(self,val1,val2,val3):
  self.data = [val1,val2,val3]
  def updatedata(self, index):
  self.data[index] = self.data[index]+1
  def display(self):
  print self.data
 
  x = Testclass()
  def createdata():
  import __main__
  __main__.x.setdata(10, 20, 30)
  __main__.x.updateLog(2)
  __main__.x.display()
 
  createdata()
  [10,20,31]
 
  However if I try to add it as an External Method( id= createdata) it
  doesn't
  seem to work. I've tried to call it using dtml-var/call createdata
  without success. Any suggestions what I do wrong.
  I am grateful for all comments,
 
  Espen
 
 
  ___
  Zope-Dev maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope-dev
  **  No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope )
 
 


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




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




Re: [Zope-dev] Problem in current CVS

2000-12-17 Thread Dieter Maurer

Jimmie Houchin writes:
  I just updated my current CVS build of Zope2.
  
  ImportError: cannont import name end_of_header_search
This may be the effect of a fix for a problem discussed
recently in "zope-dev":

   Zope looked for "/head" and added it, if not present.
   Unfortunately, it forgot to update "Content-Length"
   accordingly.

   This fixing was dropped.


Dieter

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




Re: [Zope-dev] Problem 2: ZCatalog

2000-09-05 Thread Chris Withers

Itamar Shtull-Trauring wrote:
 All the objects in /websites/example are being catalogged with paths such as
 /websites/example/folder/myObject. 

Using getPhysicalPath I hope and pray...

 However, when I gets the objects path
 using getpath(), it's not adjusted based on the virtual hosting settings -
 it's still /websites/example/folder/myObject, not /folder/myObject as it
 should be.

That's as expected. I guess there needs to be some discussion about what
'should' happen here.
I reckon there should be a getVirtualPath as well as a getPath.
Comments welcome...

For now, the workaround getobject().absolute_url() should work, but does
mean loading the whole object into memory :-(

cheers,

Chris

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




Re: [Zope-dev] Problem 4: Access to other virtual hosts (security issue?)

2000-09-05 Thread Chris Withers

Itamar Shtull-Trauring wrote:
 When using virtual hosting, it is still possible to access the /websites
 folder for example, using acquistion.  So I can view the contents of one
 website from the other: www.example.com/websites/example2, and
 www.example2.com/websites/example.

I don't think this is a 2.2 issue. It has always been like this AFAIK...

What you really what is a non-acquiring folder for the /example and
/example2 folders.
This shouldn't be too hard to implement :-S

Does this sounds like the right idea?

cheers,

Chris

PS: This shouldn't really be a security issue, it's more of a 'niceness'
thing as the security stuff will still work as it should (unless,
perhaps, you do domain-based authentication...) Sadly, that sort of
thing seems to go right down the priority lists :-( (go see
http://www.zope.org/standard_html_footer for another example...)

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




RE: [Zope-dev] Problem

2000-07-25 Thread Chris McDonough

Anvita,

It's possible you could reuse these components via COM using Mark
Hammond's COM stuff for python... this isn't really Zope-specific.  See
http://www.python.org/windows/win32com/ for more information.


-Original Message-
From: Anvita [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 25, 2000 2:16 AM
To: [EMAIL PROTECTED]
Subject: [Zope-dev] Problem


Hello Sir,
 
I want to create a portal for indian languages using zope. The problem
is that the programms which handles all font related issues or text to
speech conversion etc for the site (for Indian Languages) are in C and
Visual Basic and the programmes are too lenthy that we cann't rewrite
them. Kindly tell me is there any way to use tham with zope. 
 
Thanking you,
 
Yours truly,

Anvita Bajpai
Research Engineer
IIT Kanpur - India.

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




RE: [Zope-dev] Problem with XML in Zope 220b1

2000-06-13 Thread Brian Lloyd

 I have a lot of Chinese XML-files stored in Zope. The 
 internal encoding is
 UTF-8. Everything was fine in 214, 216 and 220a1. Now with 220b1, some
 characters are (apparently?) randomly turned into lt;, gt; 
 and the like. Now
 this looks like some unwanted HTML escaping, but the leading 
 '' is missing
 and the characters are definitely all in the range greater 
 127 (this is a
 property of UTF8), so there is no direct relationship to the 
 codepoints of
 gt;, lt; and co.
 
 Any ideas what could have gone wrong here?

Yes - during the alpha period we got a bug report concerning the fact 
that Netscape browsers honor the windows "extended Latin-1" characters 
\213 and \233 (which are  and ). That means that if you don't filter 
those as a part of html_quote 'ing then some Netscape versions are 
open to the same sort of script-kiddie attacks that they would be if 
the HTML was not quoted at all :(

I'm not quite sure what the right answer is here. How are you using
the html_quote format in your application?


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 



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