[Zope-dev] Re: Moving the Zope (2) collector to launchpad.

2007-09-28 Thread Simon Michael

This is great, thanks!

___
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-dev] Zope Tests: 4 OK, 1 Failed

2007-09-28 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list.
Period Thu Sep 27 12:00:00 2007 UTC to Fri Sep 28 12:00:00 2007 UTC.
There were 5 messages: 5 from Zope Unit Tests.


Test failures
-

Subject: FAILED (failures=1) : Zope-2.10 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Thu Sep 27 20:57:40 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-September/008409.html


Tests passed OK
---

Subject: OK : Zope-2.7 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Thu Sep 27 20:53:08 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-September/008406.html

Subject: OK : Zope-2.8 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Thu Sep 27 20:54:39 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-September/008407.html

Subject: OK : Zope-2.9 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Thu Sep 27 20:56:10 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-September/008408.html

Subject: OK : Zope-trunk Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Thu Sep 27 20:59:10 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-September/008410.html

___
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] Re: mysqluserfolder access blown - work lost?

2007-09-28 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ben Bartrum wrote:

 Thanks, I have done that and can log in as emergency, but then I'm
 still in the same situation: I cannot enter that folder. The traceback
 below is what I get when I try (from the ZMI):
 
 Site Error
 An error was encountered while publishing this resource. 
 AttributeError
  Sorry, a site error occurred.
 Traceback (innermost last): 
  Module ZPublisher.Publish, line 175, in publish_module_standard
  Module ZPublisher.Publish, line 132, in publish
  Module Zope.App.startup, line 204, in zpublisher_exception_hook
  Module ZPublisher.Publish, line 92, in publish
  Module ZPublisher.BaseRequest, line 421, in traverse
  Module ZPublisher.BaseRequest, line 497, in old_validation
 AttributeError: __getitem__ (Also, an error occurred while attempting to 
 render the standard error message.)

Hmm, at this point I would be trying one of two things:

 - You might try undoing the transactions where you added / configureed
   the user folder.

 - Or you might go into the debugger and erase the folder, e.g.:

   $ bin/zopectl debub
   pdb folder = app.path.to.folder
   pdb del folder.__allow_groups__
   pdb del folder.acl_users
   pdb import transaction
   pdb transaction.commit()


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

iD8DBQFG/Pyf+gerLs4ltQ4RAugWAJ0Q/Q/dD7WG6YUUsFw3p4OxupNgagCfTmfA
WDkAUQYGrOUzfuXJ48q1lhs=
=JYeI
-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] How do i test sequence-number

2007-09-28 Thread Andrew Milton
+---[ kamal hamzat ]--
| Please what is wrong with this code:

[snip]

| dtml-if expr=dtml-var sequence-number = 5

You don't next dtml tags inside dtml tags.



-- 
Andrew Milton
[EMAIL PROTECTED]
___
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] How do i test sequence-number

2007-09-28 Thread kamal hamzat
Please what is wrong with this code:

dtml-in newsSummary
dtml-var sequence-number
dtml-if expr=dtml-var sequence-number = 5

a href=dtml-absolute_url;
dtml-var title/abr /
brbrdtml-var author
dtml-var summarybrbr
/dtml-if
/dtml-in

This the error i got
invalid syntax (, line 1) 

Thanks
Kamal___
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: [Zope3-dev] Re: [Zope] Static Zope 3 APIDOC available!

2007-09-28 Thread David Pratt

Very nice. Many thanks for this.

Regards,
David

Baiju M wrote:

Stephan Richter wrote:

 Hi everyone,

 I am happy to announce that the second Foliage sprint task is
 completed. Julian Bonilla, Graham Stratton and I worked on the
 outstanding issues on creating a functional version of the APIDOC,
 which comes with Zope.

 Thanks to Jens Vagelpohl, the static APIDOC is now available at:

 http://apidoc.zope.org

 I have also uploaded a TGZ archive to:

 http://download.zope.org/distribution/static-apidoc.tgz

 I hope that this development will spark renewed interest in the tool.
 In the future I plan to make more packages available in APIDOC and
 make it work with eggs. If you are interested, please let me know!


Great news !
Congratulations to you all !!

Regards,
Baiju M


___
Zope3-dev mailing list
[EMAIL PROTECTED]
Unsub: 
http://mail.zope.org/mailman/options/zope3-dev/fairwinds%40eastlink.ca



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

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


Re: [Zope] How do i test sequence-number

2007-09-28 Thread Andreas Jung



--On 28. September 2007 16:21:17 +0100 kamal hamzat 
[EMAIL PROTECTED] wrote:




dtml-if expr=dtml-var sequence-number = 5


You can't nest DTML statements...Why don't you use ZPT?

-aj

pgpeZ7ys0dqMS.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] how do I test for the current item in an iteration

2007-09-28 Thread Andreas Jung



--On 28. September 2007 16:36:43 +0100 kamal hamzat 
[EMAIL PROTECTED] wrote:



Dear All,

I have this error after i added the if statement

Error Type: TypeError
Error Value: mybrains.__cmp__(x,y) requires y to be a 'mybrains', not a
'int'


for i in context.zCatNewsCurrent():
 if i = 5:
print %s: %s: %s % (i.id, i.author, i.summary)

return printed


Look at Python's enumerate() method.

-aj

pgp9ZLwhXwqLz.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] how do I test for the current item in an iteration

2007-09-28 Thread kamal hamzat
Dear All,

I have this error after i added the if statement

Error Type: TypeError
Error Value: mybrains.__cmp__(x,y) requires y to be a 'mybrains', not a 'int'


for i in context.zCatNewsCurrent():
 if i = 5:  
print %s: %s: %s % (i.id, i.author, i.summary)

return printed



Pls help

kamal





Error Type: TypeError
Error Value: mybrains.__cmp__(x,y) requires y to be a 'mybrains', not a 'int'

___
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] From DTML to ZPT i need help

2007-09-28 Thread Andreas Jung



--On 28. September 2007 15:55:29 +0100 kamal hamzat 
[EMAIL PROTECTED] wrote:



I have been having issue converting this code in DTML to ZPT.


dtml-in news.zCatNewsCurrent()
dtml-let article=absolute_url
dtml-if expr=_.int(article[46:48])  5
div a href=dtml-var expr=article[0:48] class=link3
 dtml-var title

  /adtml-var author br

font class=text1 dtml-var summary /font nbsp;
  a href=dtml-var expr=article[:48] class=link5
   details
  /a
 brbr
  /div

/dtml-if
/dtml-let
/dtml-in



This code is too ugly in order to think about a proper migration.
You write a python script that prepares the data to rendered. You can
the script from the ZPT and iterate over the results using tal:repeat.
tal:content is your friend for rendering dynamic content...but
you should really read the three ZPT chapters of The  Zope Book
before starting in order to understand what you can do with ZPT.

-aj


pgpFSO7RGmfAL.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] From DTML to ZPT i need help

2007-09-28 Thread Andrew Milton
+---[ kamal hamzat ]--
| I have been having issue converting this code in DTML to ZPT.
|  
|  
| dtml-in news.zCatNewsCurrent()
| dtml-let article=absolute_url
| dtml-if expr=_.int(article[46:48])  5
| div a href=dtml-var expr=article[0:48] class=link3
|  dtml-var title
| 
|   /adtml-var author br
| 
| font class=text1 dtml-var summary /font nbsp;
|   a href=dtml-var expr=article[:48] class=link5
|details
|   /a  
|  brbr   
|   /div
|  
| /dtml-if
| /dtml-let
| /dtml-in
| Can somebody help to jump start me by converting this code to ZPT for me?
|  
| I will be most grateful.
|  
| Thanks.
| Kamal

Try this as a starting point, not guaranteed to be pretty or correct.

div tal:repeat=item news/zCatNewsCurrent tal:define=article 
item/absolute-url

  div tal:condition=python:int(artcle[46:48])  5
a tal:attributes=href python:article[0:48] class=link3 
tal:content=item/title /a
br tal:replace=string: ${item/author} /br
font class=text1 tal:content=item/summary/fontnbsp;
a tal:attributes=href python:article[:48] class=link5details/a
brbr
  /div
/div
  

-- 
Andrew Milton
[EMAIL PROTECTED]
___
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] From DTML to ZPT i need help

2007-09-28 Thread kamal hamzat
I have been having issue converting this code in DTML to ZPT.


dtml-in news.zCatNewsCurrent()
dtml-let article=absolute_url
dtml-if expr=_.int(article[46:48])  5
div a href=dtml-var expr=article[0:48] class=link3
 dtml-var title
 
  /adtml-var author br
 
font class=text1 dtml-var summary /font nbsp; 
  a href=dtml-var expr=article[:48] class=link5 
   details
  /a  
 brbr   
  /div

/dtml-if
/dtml-let
/dtml-in

Can somebody help to jump start me by converting this code to ZPT for me?

I will be most grateful.

Thanks.
Kamal___
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: mysqluserfolder access blown - work lost?

2007-09-28 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ben Bartrum wrote:
 Thanks, but I am logged in as the most powerful user and cannot enter the 
 folder in order to add a regular user folder to it.

The 'emergency user' is not a normal 'Manager' account:  it is designed
only to allow for recovery in this sort of sittuation.  In your
$INSTANCE_HOME, run the following:

  $ $ZOPE_HOME/bin/zpasswd.py -u emergency -p password access

or else:

  $ echo 'emergency:password'  access

and then restart Zope.  You should then be able to log in using
'emergency' and 'password' (or whatver you typed) as credentials, and
then be able to repair / delete the broken user folder.


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

iD8DBQFG/OYE+gerLs4ltQ4RAqrUAJ92U8kd8F7AqIqSLkhOT3LegcAvAgCbB71n
QUP9F9VDGBlTJRSJuj5NcOU=
=7rX/
-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] how do I test for the current item in an iteration

2007-09-28 Thread Andrew Milton
+---[ kamal hamzat ]--
| Dear All,
| 
| I have this error after i added the if statement

Time for you to do some reading of your own.

That's three in less than an hour...

-- 
Andrew Milton
[EMAIL PROTECTED]
___
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: mysqluserfolder access blown - work lost?

2007-09-28 Thread Ben Bartrum


 -Original Message-
 From: [EMAIL PROTECTED]
 Sent: Fri, 28 Sep 2007 09:07:43 -0400

 Hmm, at this point I would be trying one of two things:
 
  - You might try undoing the transactions where you added / configureed
the user folder.
 

Embarrassingly, I haven't tried this before.  I did now, and it worked - thanks!


ONE-CLICK WEBMAIL ACCESS - Easily monitor  access your email accounts!
Visit http://www.inbox.com/notifier and check it out!
___
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: Static Zope 3 APIDOC available!

2007-09-28 Thread Simon Michael

Great work!!

Here are some things I think would make it even better:

- a last updated timestamp
- a zope version string
- automatic updating, eg nightly
- apidoc.z.o - api.z.o

Thanks a lot.
-Simon

___
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: Static Zope 3 APIDOC available!

2007-09-28 Thread Simon Michael

PS and, a Zope 2 version! I assume that's hard though.

___
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] Static Zope 3 APIDOC available!

2007-09-28 Thread Baiju M

Stephan Richter wrote:

 Hi everyone,

 I am happy to announce that the second Foliage sprint task is
 completed. Julian Bonilla, Graham Stratton and I worked on the
 outstanding issues on creating a functional version of the APIDOC,
 which comes with Zope.

 Thanks to Jens Vagelpohl, the static APIDOC is now available at:

 http://apidoc.zope.org

 I have also uploaded a TGZ archive to:

 http://download.zope.org/distribution/static-apidoc.tgz

 I hope that this development will spark renewed interest in the tool.
 In the future I plan to make more packages available in APIDOC and
 make it work with eggs. If you are interested, please let me know!


Great news !
Congratulations to you all !!

Regards,
Baiju M


___
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] mysqluserfolder access blown - work lost?

2007-09-28 Thread Ben Bartrum
Hello

I have added mysqlUserFolder to a folder that contained a lot of work I have 
done.  I may not have entered the database connection parameters correctly (it 
was late).  The upshot is that I can now not access anything in that folder.

Removing the mysqlUserFolder product doesn't help.

Zope 2.7.3
mysqlUserFolder-1.0.5

Any suggestions very welcome

Thanks
___
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] mysqluserfolder access blown - work lost?

2007-09-28 Thread Andrew Milton
+---[ Ben Bartrum ]--
| Hello
| 
| I have added mysqlUserFolder to a folder that contained a lot of work I have 
done.  

The data should all still be there, but, in accessible due to permissions.

Try logging in as the emergency user, and adding a regular user folder to the
folder.

-- 
Andrew Milton
[EMAIL PROTECTED]
___
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] mysqluserfolder access blown - work lost?

2007-09-28 Thread Ben Bartrum
Thanks, but I am logged in as the most powerful user and cannot enter the 
folder in order to add a regular user folder to it.


 -Original Message-
 From: [EMAIL PROTECTED]
 Sent: Fri, 28 Sep 2007 19:40:20 +1000
 To: [EMAIL PROTECTED]
 Subject: Re: [Zope] mysqluserfolder access blown - work lost?
 
 +---[ Ben Bartrum ]--
 | Hello
 |
 | I have added mysqlUserFolder to a folder that contained a lot of work I
 have done.
 
 The data should all still be there, but, in accessible due to
 permissions.
 
 Try logging in as the emergency user, and adding a regular user folder to
 the
 folder.
 
 --
 Andrew Milton
 [EMAIL PROTECTED]


FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!
Check it out at http://www.inbox.com/earth
___
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 is in trouble

2007-09-28 Thread Philipp von Weitershausen

Gregory Dudek wrote:
A key factor is that from the zope.org web site it is not clear if the 
community is healthy or not, and the general impression is that the 
project is stalled since so many links are dead and defunct (and in fact 
I am not so sure of the zope community health myself any longer, despite 
the ongoing zope postings here).   In my opinion, making zope.org look 
healthy and be usable is the MOST important obstacle for the Zope 
community.  I believe this is both a symptom and a cause of disarray in 
the Zope user/developer community.


Zope was always a bit hairy to get into, without saying anything about 
Plone development or Zope 3, I just want to point out that without a 
clear simple up-to-date main web site, things are looking really bad.  I 
introduced some zope-based material in an introductory computer science 
course a few years ago with moderate success, but am starting to doubt 
it would be appropriate any longer.


I am not criticizing the people on this list or the other Zope 
developers: I have enormous appreciation for what has been built, I just 
would hate to see is dwindle in vitality and use.


Gregory, thanks for bringing this up. Please be assured that we're aware 
of this problem just as well. With the Zope Foundation in place, we can 
now tackle tasks like zope.org much better. But it takes time to get 
settled and we need volunteers. We've made some progress already, but 
we're not there yet. There's a committee which is actively planning on 
improving zope.org in the near future.


As far as zope.org's focus is concerned, it has shifted, as many already 
pointed out. We're no longer trying to make it a site with member 
accounts. Software is best released through the Python CheeseShop (aka 
PyPI) these days and bug collectors can be found on Launchpad. 
Outsourcing high-maintenance factors like these will allow us to focus 
on zope.org's actual message: promoting Zope.



--
http://worldcookery.com -- Professional Zope documentation 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] Static Zope 3 APIDOC available!

2007-09-28 Thread Stephan Richter
Hi everyone,

I am happy to announce that the second Foliage sprint task is completed. 
Julian Bonilla, Graham Stratton and I worked on the outstanding issues on 
creating a functional version of the APIDOC, which comes with Zope.

Thanks to Jens Vagelpohl, the static APIDOC is now available at:

http://apidoc.zope.org

I have also uploaded a TGZ archive to:

http://download.zope.org/distribution/static-apidoc.tgz

I hope that this development will spark renewed interest in the tool. In the 
future I plan to make more packages available in APIDOC and make it work with 
eggs. If you are interested, please let me know!

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 )


Re: [Zope] From DTML to ZPT i need help

2007-09-28 Thread Dieter Maurer
Andrew Milton wrote at 2007-9-29 01:01 +1000:
 ...
Try this as a starting point, not guaranteed to be pretty or correct.

div tal:repeat=item news/zCatNewsCurrent tal:define=article 
item/absolute-url

Be careful: tal:define is evaluated before tal:repeat (independent
of the textual appearance as attribute).



-- 
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] how do I test for the current item in an iteration

2007-09-28 Thread Dieter Maurer
kamal hamzat wrote at 2007-9-28 16:36 +0100:
I have this error after i added the if statement

Error Type: TypeError
Error Value: mybrains.__cmp__(x,y) requires y to be a 'mybrains', not a 'int'


for i in context.zCatNewsCurrent():
 if i = 5:  
print %s: %s: %s % (i.id, i.author, i.summary)

You are aware that you use i both as an integer (i = 5)
as well as a structure (i.id, i.author, ...).

Python is quite polymorph -- but there are some limits.

Andreas suggestion was good: enumerate may help you...



-- 
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] From DTML to ZPT i need help

2007-09-28 Thread Andrew Milton
+---[ Dieter Maurer ]--
| Andrew Milton wrote at 2007-9-29 01:01 +1000:
|  ...
| Try this as a starting point, not guaranteed to be pretty or correct.
| 
| div tal:repeat=item news/zCatNewsCurrent tal:define=article 
item/absolute-url
| 
| Be careful: tal:define is evaluated before tal:repeat (independent
| of the textual appearance as attribute).

But if I just did all his homework for him, he'd never learn anything.

-- 
Andrew Milton
[EMAIL PROTECTED]
___
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] tunneling via ...

2007-09-28 Thread David Bear
I am in a situation will I may soon need to outsource the running of
my apache server. This may be a good thing. However, I cannot
outsource the running of my zope server. So I have the situation where
apache will be running on a separate box from my zope server and I am
wondering how to make sure I have a secure connection between the
apache server that I don't control that will be using modproxy/rewrite
rules to get content out of my zope server.

Currently, zope only binds to 127.0.0.1 and apacy proxy connects.

Using a remote apache server implies that I will need to have zope
listen on a public interface. However, I will still need to secure it
so I was considering openssl or something like that.

in short I have 

APACHE HOST  -- ZOPE HOST

I need to secure the connection between these two hosts.

Any recommendations?

-- 
David Bear
phone:  602-496-0424
fax:602-496-0955
College of Public Programs/ASU
University Center Rm 622
411 N Central
Phoenix, AZ 85007-0685
 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 )


Re: [Zope] tunneling via ...

2007-09-28 Thread Jaroslav Lukesh
- Original Message - 
From: David Bear [EMAIL PROTECTED]




APACHE HOST  -- ZOPE HOST

I need to secure the connection between these two hosts.


use ssh tunnell

JL.
___
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] tunneling via ...

2007-09-28 Thread Bill Campbell
On Fri, Sep 28, 2007, David Bear wrote:
I am in a situation will I may soon need to outsource the running of
my apache server. This may be a good thing. However, I cannot
outsource the running of my zope server. So I have the situation where
apache will be running on a separate box from my zope server and I am
wondering how to make sure I have a secure connection between the
apache server that I don't control that will be using modproxy/rewrite
rules to get content out of my zope server.

Currently, zope only binds to 127.0.0.1 and apacy proxy connects.

Using a remote apache server implies that I will need to have zope
listen on a public interface. However, I will still need to secure it
so I was considering openssl or something like that.

Can you use openvpn to create a tunnel between the apache server
and your zope server, then run zope on a private interface?

Bill
--
INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
FAX:(206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676

there is nothing more difficult to take in hand, more perilous to
conduct, or more uncertain in its success, than to take the lead in
the introduction of a new order of things.  Because the innovator has
for enemies all those who have done well under the old conditions,
and lukewarm defenders in those who may do well under the new.
-- Machiavelli
___
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 )