[Zope-Checkins] CVS: Products/ZCTextIndex/tests - testZCTextIndex.py:1.37.2.2

2005-05-17 Thread Andreas Jung
Update of /cvs-repository/Products/ZCTextIndex/tests
In directory 
cvs.zope.org:/tmp/cvs-serv31115/lib/python/Products/ZCTextIndex/tests

Modified Files:
  Tag: Zope-2_7-branch
testZCTextIndex.py 
Log Message:

  - Collector #1784: fixed handling of multiple attributes in ZCTextIndex


=== Products/ZCTextIndex/tests/testZCTextIndex.py 1.37.2.1 = 1.37.2.2 ===
--- Products/ZCTextIndex/tests/testZCTextIndex.py:1.37.2.1  Mon Nov 17 
17:34:12 2003
+++ Products/ZCTextIndex/tests/testZCTextIndex.py   Tue May 17 14:10:41 2005
@@ -39,6 +39,11 @@
 def __init__(self, text):
 self.text = text
 
+class Indexable2:
+def __init__(self, text1, text2):
+self.text1 = text1
+self.text2 = text2
+
 class LexiconHolder(Acquisition.Implicit):
 def __init__(self, lexicon):
 self.lexicon = lexicon
@@ -115,6 +120,7 @@
 'lexicon')
 self.index = self.zc_index.index
 
+
 def parserFailure(self, query):
 self.assertRaises(ParseError, self.zc_index.query, query)
 
@@ -123,6 +129,27 @@
 self.assertEqual(num, n)
 if n:
 self.assertEqual(r[0][0], 1)
+
+def testMultipleAttributes(self):
+lexicon = PLexicon('lexicon', '',
+Splitter(),
+CaseNormalizer(),
+StopWordRemover())
+caller = LexiconHolder(self.lexicon)
+zc_index = ZCTextIndex('name',
+None,
+caller,
+self.IndexFactory,
+   'text1,text2',
+   'lexicon')
+doc = Indexable2('foo bar', 'alpha omega')
+zc_index.index_object(1, doc)
+nbest, total = zc_index.query('foo')
+self.assertEqual(len(nbest), 1)
+nbest, total = zc_index.query('foo alpha')
+self.assertEqual(len(nbest), 1)
+nbest, total = zc_index.query('foo alpha gamma')
+self.assertEqual(len(nbest), 0)
 
 def testStopWords(self):
 # the only non-stopword is question

___
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins


[Zope-Coders] Zope tests: 6 OK

2005-05-17 Thread Zope tests summarizer
Summary of messages to the zope-tests list.
Period Mon May 16 11:01:02 2005 UTC to Tue May 17 11:01:02 2005 UTC.
There were 6 messages: 6 from Zope Unit Tests.


Tests passed OK
---

Subject: OK : Zope-2_6-branch Python-2.1.3 : Linux
From: Zope Unit Tests
Date: Mon May 16 22:40:33 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-May/002133.html

Subject: OK : Zope-2_6-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Mon May 16 22:42:04 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-May/002134.html

Subject: OK : Zope-2_7-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Mon May 16 22:43:34 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-May/002135.html

Subject: OK : Zope-2_7-branch Python-2.4.1 : Linux
From: Zope Unit Tests
Date: Mon May 16 22:45:04 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-May/002136.html

Subject: OK : Zope-trunk Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Mon May 16 22:46:34 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-May/002137.html

Subject: OK : Zope-trunk Python-2.4.1 : Linux
From: Zope Unit Tests
Date: Mon May 16 22:48:04 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-May/002138.html

___
Zope-Coders mailing list
Zope-Coders@zope.org
http://mail.zope.org/mailman/listinfo/zope-coders


[Zope-dev] Re: WinBuilders for Zope 2.8

2005-05-17 Thread yuppie
Hi Mark!
Mark Hammond wrote:
I think we have 2 issues here:
* There is a bug in ZConfig such that if a default is provided for *both*
hostname and IP, things don't behave as expected.  This bug probably exists
on all platforms, but is only seen on Windows since it provides defaults for
the 2 values.
Can't follow you. Please have a look at my summary in Entry #22 of 
http://www.zope.org/Collectors/Zope/1507

* It is still unclear why Windows has a different default in the first
place.
Tim explained that in Entry #5 of http://www.zope.org/Collectors/Zope/1728
Thus there seem to be 2 ways to move forward:
1) Remove the different behaviour for Windows.
This is already done (in Zope, not in ZConfig). See 
http://svn.zope.org/?view=revrev=30303

2) Fix the underlying ZConfig error, and document somewhere the reasons for
the change.
Fred volunteered to resolve the ZConfig issue, see Entry #23 of 
http://www.zope.org/Collectors/Zope/1507

Cheers,
Yuppie
___
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] [Interested?] New use for Zope+CMF+Archetypes -- startup time improvements

2005-05-17 Thread Dieter Maurer
Dieter Maurer wrote at 2005-5-14 20:37 +0200:
Andreas Jung wrote at 2005-5-14 11:00 +0200:
 ...
Although I already worked with pypackage my questions:  is it an optional
feature or will pypackage take control over all and everything?

Provided that any access to a package relative resource
is converted from dirname(__file__) to package_home
logic to use or not use pypackage could be localized in package_home
and (maybe) OFS.Application.get_products.

After a new thought, I doubt this is worth the effort.

  When pypackage is part of Zope why should Zope not
  depend on it?

  Of course, this should not apply to third party products.
  And indeed, as long as they do not want to run from
  a zip archive or as part of a frozen application, they
  can ignore pypackage.

  When they use package_home (rather than dirname(__file__)
  to access package local resources, they are independent
  of any pypackage consideration.

-- 
Dieter
___
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 )


[Zope] setPermissionDefault not setting anything

2005-05-17 Thread Sascha Welter
Hi!

In a python product I'm trying to set default permissions. Same as in 
http://www.zope.org/Collectors/Zope/275 nothing is set at all, no error
is raised, no error message is logged.

This is on Zope 2.7.5. I'm basically using this code in my product:

view = View
edit = Change Images and Files
manage = View management screens

class CompanyService( CatalogPathAware, ObjectManager, PropertyManager,
SimpleItem ):
[...snip...]
security=ClassSecurityInfo()
security.setPermissionDefault(view,('Authenticated','Manager',))
security.setPermissionDefault(edit,['Manager'])
security.setPermissionDefault(manage,['Manager'])
def __init__( ...snip...

security.declareProtected( view, 'index_html' )
def index_html( REQUEST ):

test

return ping

Globals.InitializeClass( CompanyService )
[...snip...]

I searched for this on the web and found only old references to 2.5.X
and Collector Issue 275. So I tryed out the Test Class from that issue
and I get the same results. 

Am I doing something completely wrong? 

Is something wrong with my setup? I could upgrade to 2.7.6 too, but I 
don't see any changes in the code for SecurityInfo.py from the zope CVS
(unless of course I look in the wrong place:
http://cvs.zope.org/Zope2/lib/python/AccessControl/SecurityInfo.py.diff?r1=1.7.2.1r2=1.9
)

I would be really happy to learn what I am doing wrong. Please don't
tell me that I discovered a bug, I don't want to.

Regards,

Sascha

___
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] Unable to delete a object in Dreamweaver MX.

2005-05-17 Thread Chris Withers
Digital Adventures wrote:
Hello,
My clients aren't able to delete a object from Dreamweaver MX. Is this a 
know issue ?
What happens when they try?
Chris
--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
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] More tolerant Stripogram (solution)

2005-05-17 Thread Jaroslav Lukesh
Dne ter, 17. kvtna 2005 13:26 Chris Withers [EMAIL PROTECTED] 
napsal(a):
 Jaroslav Lukesh wrote:
 I was extend SquishDot with wysiwyg editor (origin: vsbabu ieeditor).
  But it was not accept many tags due too small number of allowed html
  attributes in stripogram.
 
 Looks like you completely defait the purpose of the stripping ;)

 Yeah, what Tino said ;-)

 Why are you bothering to strip when you basically let people put in all
 the abusive tags anyway?

Because it is not abusive tags for intranet blog.

  return strip(html2safehtml(text,self.getProperty('valid_tags',('b', 'a',
  'i', 'br', 'p', 'h3', 'ul', 'li', 'font', 'br'

 Also, why don't you just add a valid_tags property to your Squishdot
 site rather than hacking the source code?

I want to use stripogram not only with squishdot. And at second, at time of 
hacking I does not know valid_tags property :o)

Best Regards,

-- 

Jaroslav Lukesh
  ---
  This e-mail can not contain any viruses because I use Linux

___
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] Seeking advice on Zope implementation

2005-05-17 Thread pythonic
I have searched on this topic a bit but then could not find what I am looking
for so posting my Zope questions here.

Scenario: We have decided to use Zope as the web frontend to our python based
application. So this will be implemented as Zope product. We have
already started
reading the docs available on zope.org. So far we have decided to use
zope behind
apache+fastcgi server to take advantage of apache rewrite engine and
to serve static
content.

Questions:
1. Startup custmization: How can one configure zope to load instance
of this as product
(my application) on the startup but not the ZMI and other zope stuff.
2. We want to generate xml using ZPTs and then apply xsl. Is the server side
transformation supported?
3. Is there any good doc available that describes how to do things you do in
ZMI programmatically?
4. Zope 2.7 / 3 ?

Any pointers/suggestions? If you know any links that addresses above
topics please
let me know.

TIA.
___
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] Seeking advice on Zope implementation

2005-05-17 Thread Andreas Jung

--On Dienstag, 17. Mai 2005 19:33 Uhr +0530 pythonic [EMAIL PROTECTED] 
wrote:

reading the docs available on zope.org. So far we have decided to use
zope behind
apache+fastcgi server to take advantage of apache rewrite engine and
to serve static
content.
You should run Zope as standalone server + Apache/Squid as reverse proxy.
Using Fastcgi is uncommon and in general obsolete.
-aj



pgpfpJq8gKYRn.pgp
Description: 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 )


Re: [Zope] Seeking advice on Zope implementation

2005-05-17 Thread Lennart Regebro
On 5/17/05, pythonic [EMAIL PROTECTED] wrote:
 Scenario: We have decided to use Zope as the web frontend to our python based
 application. So this will be implemented as Zope product. 
[...]
 4. Zope 2.7 / 3 ?

Zope 3 in that case, since you want an application framework, mostly.
Zope 3 is better in that respect. It still lacks good content
management tools (although this is in the works) so for content
management applications I'd recommend Zope2.

-- 
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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] Seeking advice on Zope implementation

2005-05-17 Thread Paul Winkler
On Tue, May 17, 2005 at 07:33:30PM +0530, pythonic wrote:
 Questions:
 1. Startup custmization: How can one configure zope to load instance
 of this as product
 (my application) on the startup but not the ZMI and other zope stuff.

You can't really prevent zope from starting up the ZMI.

 2. We want to generate xml using ZPTs and then apply xsl. Is the server side
 transformation supported?

I don't know, but there's plenty of suggestive hits on google.
http://www.google.com/search?hl=enq=zope+xsltbtnG=Google+Search

 3. Is there any good doc available that describes how to do things you do in
 ZMI programmatically?

This should be useful:
http://www.plope.com/Books/2_7Edition/AppendixB.stx

Also, you can look at the dtml source of the ZMI in lib/python/App/dtml
- this can be helpful even just for a cursory glance to see the names of
methods that forms submit to.

Also check out http://www.zopelabs.com which has many relevant
recipes.

FWIW, everything I said applies to zope 2 only.  I can't really give
helpful advice about Z3, I haven't spent much time with it yet.

-- 

Paul Winkler
http://www.slinkp.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] Seeking advice on Zope implementation

2005-05-17 Thread Stephan Richter
Hi,

it all depends what your app is like. Can you describe it some more?

On Tuesday 17 May 2005 10:03, pythonic wrote:
 1. Startup custmization: How can one configure zope to load instance
 of this as product
 (my application) on the startup but not the ZMI and other zope stuff.

In Zope 3 you can turn off as many unwanted features as you like. So from this 
point of view Zope 3 would be good.

 2. We want to generate xml using ZPTs and then apply xsl. Is the server
 side transformation supported?

Why? You first use ZPT to create XML and then an XSLT engine to create HTML. 
This seems like a slow approach to me. ZPT can generate HTML right away, 
which is much faster. Unless you already have your content in XML, an XSLT 
engine is total overkill.

 3. Is there any good doc available that describes how to do things you do
 in ZMI programmatically?

Zope 3 does not rely as heavily on the ZMI as Zope 2 and in fact all code is 
developed on the filesystem, so in this case it might be better for you.

 4. Zope 2.7 / 3 ?

I think you should go with Zope 3. Several projects have already successfully 
integrated their Pyton code into Zope 3.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
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] zope objects question

2005-05-17 Thread cla
Hi! in first place i want to know if
there is some tutorial that explains
how the zope objects are stored and how to
manipulated them!

The second question is about some work i have to
do:
I am going to have different portals, but
they have to share news and some other modules
for example if i publish some news in one portal
the same news have to appear in the other portals.

thanks



SMS GRÁTIS do seu PC para qualquer rede nacional (TMN, Vodafone, Optimus e 
PTC). Basta instalar o SAPO Messenger e adicionar amigos!
Vá agora a : http://messenger.sapo.pt/sms/

___
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] zope objects question

2005-05-17 Thread Andreas Jung

--On Dienstag, 17. Mai 2005 18:17 Uhr +0100 cla [EMAIL PROTECTED] wrote:
Hi! in first place i want to know if
there is some tutorial that explains
how the zope objects are stored and how to
manipulated them!
The Zope Developers Guide (linked from zope.org) should be a good
start to learn about ZODB, persistence etc.
The second question is about some work i have to
do:
I am going to have different portals, but
they have to share news and some other modules
for example if i publish some news in one portal
the same news have to appear in the other portals.
How about using RSS? Although RSS is mainly used to share *something*
between remote servers you could also use RSS in a local environment.
Depending on your implementation you can of course access any object
from anywhere within the same Zope instance by path. If every portal
has the same API to access news then you can access the stuff from other
portals by obtaining the portal object and then by calling the necessary
API methods. The details depend on your implementation and what you really
want to do. For high-level portal functionality look at CMF, Plone, Silva or
CPS.
-aj


pgpjTEyUJjTJt.pgp
Description: 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] Zope 3 for Debian?

2005-05-17 Thread David Given
Does anyone know what the timescale is for Zope 3 packages being put together 
for Debian? I have a project I'd like to work on, and I suspect that Zope 3 
is a better bet than Zope 2 --- but Zope 3's not out yet. Is it worth waiting 
or should I just go for Zope 2?

(No, I don't want to install Zope 3 manually. It's sufficiently large and 
sufficiently complex that it'd be a dependency nightmare.)

-- 
+- David Given --McQ-+ ...thus there might be a great reduction in
|  [EMAIL PROTECTED]| useless expenditure on Nuclear rockets, reducing
| ([EMAIL PROTECTED]) | inflation and stabilising the price of cat foods.
+- www.cowlark.com --+ --- UK pat. GB1426698
___
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] Zope 3 for Debian?

2005-05-17 Thread Andreas Jung

--On Dienstag, 17. Mai 2005 18:20 Uhr +0100 David Given [EMAIL PROTECTED] 
wrote:

(No, I don't want to install Zope 3 manually. It's sufficiently large and
sufficiently complex that it'd be a dependency nightmare.)
You just need Python 2.3.5 and the Z3 sources. Typing make is trivial :-)
-aj

pgpexP1n1f2xu.pgp
Description: 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 )


Re: [Zope] property of type 'lines' for objects on file system

2005-05-17 Thread Dieter Maurer
Hong Yuan wrote at 2005-5-15 15:36 +0800:
I'd like to put a property of type 'lines' to an object on the file 
system throught its corresponding .metadata file, but don't know the 
syntax I shall use in the file.

Stock Zope does not allow to do this.

+lupa+ posted a patch to remove this restriction.
May be available in the Zope collector.

-- 
Dieter
___
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] WebDAV Locked Item Unlockable

2005-05-17 Thread Dieter Maurer
[EMAIL PROTECTED] wrote at 2005-5-16 08:26 -0600:
The locked item does not show up on the Control 
Panel  WebDAV Lock Manager, and the lock even survives a Zope 
restart.  All attempts to edit or remove the item fail.

Look at the traceback (*always* do when a failure results in
an exception!), then look at the source (mentioned in the traceback).
It will tell you what variable/attribute Zope checks to
detect whether the object is looked.
Search the source for other places where this variable/attribute
is accessed.

-- 
Dieter
___
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] upload folder contents

2005-05-17 Thread garry saddington
If a set of web pages is generated by for instance the output of a Docbook 
transformation or by the new eXe XHTML editor, is there any way of uploading 
all the resulting pages into Zope in one go and maintaining the individual 
file names so that links remain working. I want users to be able to generate 
content locally and then upload to a Zope server, so products like 
FileSystemSite are not suitable. This product also changes the filenames so 
that links are broken. 
regards
garry
___
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] Re: Zope 3 for Debian?

2005-05-17 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Andreas Jung wrote:
 
 
 --On Dienstag, 17. Mai 2005 18:20 Uhr +0100 David Given [EMAIL PROTECTED]
 wrote:
 

 (No, I don't want to install Zope 3 manually. It's sufficiently large and
 sufficiently complex that it'd be a dependency nightmare.)

 
 You just need Python 2.3.5 and the Z3 sources. Typing make is trivial :-)

Assuming a standard build environment (make, gcc, etc.), 'zlib' is the
only one which typically bites me on a new machine -- Python will build
in its absence, but ZODB won't.  If you like, it would be sufficient to
install the builddeps of zope2.7 Debian package first:  the only bits of
Zope3 which depend on anything other than Python will be satisfied by
the same packages.


Tres.
- --
===
Tres Seaver   [EMAIL PROTECTED]
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCilox+gerLs4ltQ4RAnnpAJ4yjW/piR+yZo2kVBDeRhzqfKg6jwCfdMXX
poPAe1AUcXJVKPlRvUE3AAo=
=jpmU
-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 )


Re: [Zope] upload folder contents

2005-05-17 Thread J Cameron Cooper
garry saddington wrote:
If a set of web pages is generated by for instance the output of a Docbook 
transformation or by the new eXe XHTML editor, is there any way of uploading 
all the resulting pages into Zope in one go and maintaining the individual 
file names so that links remain working. I want users to be able to generate 
content locally and then upload to a Zope server, so products like 
FileSystemSite are not suitable. This product also changes the filenames so 
that links are broken. 
FTP or WebDAV should do nicely.
--jcc
--
Building Websites with Plone
http://plonebook.packtpub.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] Re: Zope 3 for Debian?

2005-05-17 Thread Tim Peters
[Tres Seaver]
 Assuming a standard build environment (make, gcc, etc.),
 'zlib' is the only one which typically bites me on a new
 machine -- Python will build in its absence, but ZODB won't.

What's that about?  The only part of ZODB that uses zlib/gzip is the
repozo.py backup script.
___
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] Re: Zope 3 for Debian?

2005-05-17 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tim Peters wrote:
 [Tres Seaver]
 
Assuming a standard build environment (make, gcc, etc.),
'zlib' is the only one which typically bites me on a new
machine -- Python will build in its absence, but ZODB won't.
 
 
 What's that about?  The only part of ZODB that uses zlib/gzip is the
 repozo.py backup script.

Hmm, I don't know;  I was basing it on a memory of building out a ZEO
storage server on a bare bones Unix box, and having something during
the build / startup phase barf, complaining about the absence of zlib.

Perhaps I conflated two memories.  I'm pretty sure that *something* in
the Zope codebase requires zlib, but I take Tim's word for it that I
wrongly attributed that dependency to ZODB.

Tres.
- --
===
Tres Seaver   [EMAIL PROTECTED]
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCil+D+gerLs4ltQ4RAns2AJ4nC5hROXP9ym/CZsIFuX93mee6pQCgr7tj
2NVP9Is7R4fjGcygCc0RhPM=
=6zJk
-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] Adding zclass inside folder with python

2005-05-17 Thread Anthu Nguyen
Hi,

I've tried everything I can think of and am probably missing something
obvious - help...

I'm trying to (1) Create a folder, then (2) Add a new zclass inside that
folder.
Instead, the zclass is being added in the same space as the folder:

- What I want:

New Folder
New ZClass

- What's happening:

New Folder
New ZClass

===
The code that doesn't work:

request = context.REQUEST
pbuildid = request.pbuildid

# Add a new folder with id=pbuildid
context.manage_addFolder(id=pbuildid)

# Add a new instance of the ZClass inside new folder
instance = context.pbuild.createInObjectManager(request['id'], request)
instance.propertysheets.pbuild_properties.manage_editProperties(request)

===
TIA, AnThu Nguyen

___
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] Re: Zope 3 for Debian?

2005-05-17 Thread Andrew Langmead
On May 17, 2005, at 5:17 PM, Tres Seaver wrote:Perhaps I conflated two memories.  I'm pretty sure that *something* in the Zope codebase requires zlib, but I take Tim's word for it that I wrongly attributed that dependency to ZODB.At one point, our system administration staff commissioned machines in the barest of bare bones fashions, and zlib was one of the things that wasn't installed unless specifically requested. I have had also spent time building python and Zope just to have Zope complain about zlib on startup. There are at least a couple of places that I can think of on the Zope side that require zlib, the HTTP server needs it to handle  "content-encoding: gzip" responses.___
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] Seeking advice on Zope implementation

2005-05-17 Thread Dan Pozmanter
 
In Zope 3 you can turn off as many unwanted features as you like

That sounds really cool.  How so?
(Is there a tentative list of all zope 3 services?  Do you need to run
all of them?)

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Stephan Richter
Sent: Tuesday, May 17, 2005 11:02 AM
To: zope@zope.org; pythonic
Subject: Re: [Zope] Seeking advice on Zope implementation

Hi,

it all depends what your app is like. Can you describe it some more?

On Tuesday 17 May 2005 10:03, pythonic wrote:
 1. Startup custmization: How can one configure zope to load instance 
 of this as product (my application) on the startup but not the ZMI and

 other zope stuff.

In Zope 3 you can turn off as many unwanted features as you like. So
from this point of view Zope 3 would be good.

 2. We want to generate xml using ZPTs and then apply xsl. Is the 
 server side transformation supported?

Why? You first use ZPT to create XML and then an XSLT engine to create
HTML. 
This seems like a slow approach to me. ZPT can generate HTML right away,
which is much faster. Unless you already have your content in XML, an
XSLT engine is total overkill.

 3. Is there any good doc available that describes how to do things you

 do in ZMI programmatically?

Zope 3 does not rely as heavily on the ZMI as Zope 2 and in fact all
code is developed on the filesystem, so in this case it might be better
for you.

 4. Zope 2.7 / 3 ?

I think you should go with Zope 3. Several projects have already
successfully integrated their Pyton code into Zope 3.

Regards,
Stephan
--
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k -
Web Software Design, Development and Training
___
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 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] Re: Zope 3 for Debian?

2005-05-17 Thread Tim Peters
[Tim]
 What's that about?  The only part of ZODB that uses
 zlib/gzip is the repozo.py backup script.

[Tres]
 Hmm, I don't know;  I was basing it on a memory of building
 out a ZEO storage server on a bare bones Unix box, and
 having something during the build / startup phase barf,
 complaining about the absence of zlib.

 Perhaps I conflated two memories.  I'm pretty sure that
 *something* in the Zope codebase requires zlib, but I take
 Tim's word for it that I wrongly attributed that dependency to
 ZODB.

I didn't say you were wrong, I just asked what this was about ;-)  I
bet it has something to do with this msg pumped out by Zope's
inst/configure.py if import zlib fails:


The Python interpreter you are using does not appear to have the 'zlib'
library module installed.  For Zope to be able to run, you must install a
Python interpreter which includes the zlib module, or install the zlib library
into your Python interpreter manually.  The file which represents the library
is named 'zlib.so' (UNIX) or 'zlib.dll' (Windows) and is typically located in
the 'lib-dynload' directory of your Python's library directory.  Some
Python packagers ship the zlib module as a separate installable
binary. If you are using a system-provided Python installation, you
may want to look for a 'python-zlib' package (or something like it)
and install it to make the
Python zlib module available to Zope.

Run the configure script with the --ignore-zlib option to prevent this
warning with the understanding that Zope will not start properly until
you've installed the zlib module.


zlib is imported by 10 other Zope modules then.  Think this one is
nailed wink.
___
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] mod_zope development

2005-05-17 Thread David Bear
a quick google on mod_zope yeilded http://codespeak.net/z3/modzope/
and some other very old stuff.

Anyone know the status of this project? It is a new page... I'm
interested in how Zope Corp views this project and what Zope corp may
have in the future regarding apache style pluggins.

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
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] Apache port 8080

2005-05-17 Thread David Radovanovic
Hello all,

I'm working remotely, logged into a FreeBSD webserver which hosts several
websites. While logged in via SSH, I've finished installing Zope behind the
Apache server. 

I hope the answer is obvious: When I try to access the Zope installation
(externally) at http://www.my_freebsd_website.com:8080 I get no page, though
from within the freebsd webserver (while shelled into the webserver) I can
open the Zope installation via the Lynx browser, http://www.localhost:8080
as expected. What could I be missing? Is there a way to test the 8080 port? 

Netstat output:

# netstat -an -finet -ptcp
Active Internet connections (including servers)
Proto Recv-Q Send-Q  Local Address  Foreign Address(state)
tcp4   0 20  200.1.1.15.22  24.161.85.118.34614
ESTABLISHED
tcp4   0  0  *.7786 *.*LISTEN
tcp4   0  0  127.0.0.1.7786 *.*LISTEN
tcp4   0  0  *.8021 *.*LISTEN
tcp4   0  0  *.8080 *.*LISTEN
tcp4   0  0  *.3306 *.*LISTEN
tcp4   0  0  *.80   *.*LISTEN
tcp4   0  0  *.587  *.*LISTEN
tcp46  0  0  *.25   *.*LISTEN
tcp4   0  0  *.25   *.*LISTEN
tcp4   0  0  *.22   *.*LISTEN
tcp46  0  0  *.22   *.*LISTEN
tcp4   0  0  *.23   *.*LISTEN
tcp4   0  0  *.21   *.*LISTEN

Ps -aux output:

www  806  0.0  0.3 25788  888  ??  S10:43AM   0:15.44
/usr/local/bin/python2.3 /usr/local/www/Zope/lib/python/Zope/Startup/run.py
-C /usr/local/www/Zope/instance-rsci/etc/zope.conf
root 805  0.0  0.2  6000  640  ??  Ss   10:43AM   0:00.99
/usr/local/bin/python2.3 /usr/local/www/Zope/lib/python/zdaemon/zdrun.py -S
/usr/local/www/Zope/lib/python/Zope/Startup/zopeschema.xml -b 10 -d -s
/usr/local/www/Zope/instance-rsci/var/zopectlsock -x 0,2 -z
/usr/local/www/Zope/instance-rsci /usr/


Any help would be much appreciated,

David Radovanovic
WhatsTheBigIdea.com, Inc.
-- Bright ideas for the Web!
249 Partition Street
Saugerties, New York 12477
(845) 247-0909
http://www.WhatsTheBigIdea.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] Apache port 8080

2005-05-17 Thread Kevin J Kalupson
Apache is not going to forward your requests to other ports without some 
sort of intervention on your part.   You need to set up some re-write 
rules for this to work.

Here's a link to a howto that seems to be working well for some people.
http://zope.psu.edu/index_html/tutorials/zopetut/zope_apache_ssl/document_view
Hello all,
I'm working remotely, logged into a FreeBSD webserver which hosts several
websites. While logged in via SSH, I've finished installing Zope behind the
Apache server. 

I hope the answer is obvious: When I try to access the Zope installation
(externally) at http://www.my_freebsd_website.com:8080 I get no page, though
from within the freebsd webserver (while shelled into the webserver) I can
open the Zope installation via the Lynx browser, http://www.localhost:8080
as expected. What could I be missing? Is there a way to test the 8080 port? 

Netstat output:
# netstat -an -finet -ptcp
Active Internet connections (including servers)
Proto Recv-Q Send-Q  Local Address  Foreign Address(state)
tcp4   0 20  200.1.1.15.22  24.161.85.118.34614
ESTABLISHED
tcp4   0  0  *.7786 *.*LISTEN
tcp4   0  0  127.0.0.1.7786 *.*LISTEN
tcp4   0  0  *.8021 *.*LISTEN
tcp4   0  0  *.8080 *.*LISTEN
tcp4   0  0  *.3306 *.*LISTEN
tcp4   0  0  *.80   *.*LISTEN
tcp4   0  0  *.587  *.*LISTEN
tcp46  0  0  *.25   *.*LISTEN
tcp4   0  0  *.25   *.*LISTEN
tcp4   0  0  *.22   *.*LISTEN
tcp46  0  0  *.22   *.*LISTEN
tcp4   0  0  *.23   *.*LISTEN
tcp4   0  0  *.21   *.*LISTEN
Ps -aux output:
www  806  0.0  0.3 25788  888  ??  S10:43AM   0:15.44
/usr/local/bin/python2.3 /usr/local/www/Zope/lib/python/Zope/Startup/run.py
-C /usr/local/www/Zope/instance-rsci/etc/zope.conf
root 805  0.0  0.2  6000  640  ??  Ss   10:43AM   0:00.99
/usr/local/bin/python2.3 /usr/local/www/Zope/lib/python/zdaemon/zdrun.py -S
/usr/local/www/Zope/lib/python/Zope/Startup/zopeschema.xml -b 10 -d -s
/usr/local/www/Zope/instance-rsci/var/zopectlsock -x 0,2 -z
/usr/local/www/Zope/instance-rsci /usr/
Any help would be much appreciated,
David Radovanovic
WhatsTheBigIdea.com, Inc.
-- Bright ideas for the Web!
249 Partition Street
Saugerties, New York 12477
(845) 247-0909
http://www.WhatsTheBigIdea.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 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] Postgres stored procedures and views support in Zope

2005-05-17 Thread David Pratt
Can someone tell me whether/how zope supports views and stored 
procedures with zope.  Do I need any other product besides the psycopg 
adapter? Any links to references appreciated.

Regards
David
___
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] Postgres stored procedures and views support in Zope

2005-05-17 Thread Tino Wildenhain
Am Mittwoch, den 18.05.2005, 00:20 -0300 schrieb David Pratt:
 Can someone tell me whether/how zope supports views and stored 
 procedures with zope.  Do I need any other product besides the psycopg 
 adapter? Any links to references appreciated.

There is no special support... needed.
views are tables and postgres has no 
stored procedures but stored functions.
You use them the one or the other way
with select (usually) so this fits
perfectly :-)

Just go on :-)

Regards
Tino

___
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-DB] MySQL ZSQL Transactions or Commit in Zope?

2005-05-17 Thread Itziar Aldabe
Hello,
we have a similar problem. We want to access two databases each of them 
with its corresponding
Z MySql Database connection. We want to:

1- Insert record A into ERREUS database
2- Get auto_increment id for record A
3- Insert record B into IRAKAZI database with auto_increment id.
when we execute steps 1 and 2 within a python script, it's correct.
when we execute steps 2 and 3 within a python script, it's correct.
but, if we want to execute all the steps together we receive this message:
*Error Type: OperationalError*
*Error Value: (1205, 'Lock wait timeout exceeded; Try restarting 
transaction')*

Can someone help us, please?
Thanks!
Itziar
Message: 1
Date: Sun, 15 May 2005 16:30:38 -0400
From: Michael Schwartz [EMAIL PROTECTED]
Subject: [Zope-DB] MySQL ZSQL Transactions or Commit in Zope?
To: zope-db@zope.org
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=us-ascii
I am trying to find sample code for performing transactions in ZSQL with
mysql 4.1.  I'd like to do something like this:
1 - Insert record A into USER table
2 - Get auto_increment id for record A
3 - Insert record B into WIDGET table with auto_increment id from
previous step
But if step 3 fails, I want to undo step 1. 

Do I need to back out manually?
Thanks in advance! 

Mike Schwartz

 

___
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db


Re: [Zope-DB] MySQL ZSQL Transactions or Commit in Zope?

2005-05-17 Thread Dieter Maurer
Michael Schwartz wrote at 2005-5-15 16:30 -0400:
I am trying to find sample code for performing transactions in ZSQL with
mysql 4.1.  I'd like to do something like this:
 
1 - Insert record A into USER table
2 - Get auto_increment id for record A
3 - Insert record B into WIDGET table with auto_increment id from
previous step

But if step 3 fails, I want to undo step 1. 

Provided you use transactional tables (i.e. you use MySQL
in a way that it support transactions), then you only
need to abort the Zope transaction (which happens automatically
when an exception reached ZPublisher).

-- 
Dieter
___
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db