[Zope-Checkins] SVN: Zope/branches/tim-2.9-windows-installer/inst/WinBuilders/mk/zope.mk Removed long-broken `test_zope` target.

2006-01-14 Thread Tim Peters
Log message for revision 41312:
  Removed long-broken `test_zope` target.
  

Changed:
  U   Zope/branches/tim-2.9-windows-installer/inst/WinBuilders/mk/zope.mk

-=-
Modified: Zope/branches/tim-2.9-windows-installer/inst/WinBuilders/mk/zope.mk
===
--- Zope/branches/tim-2.9-windows-installer/inst/WinBuilders/mk/zope.mk 
2006-01-13 23:26:31 UTC (rev 41311)
+++ Zope/branches/tim-2.9-windows-installer/inst/WinBuilders/mk/zope.mk 
2006-01-14 15:28:53 UTC (rev 41312)
@@ -6,13 +6,6 @@
 REQUIRED_FILES=$(PYTHON_REQUIRED_FILES)\
$(ZOPE_REQUIRED_FILES)
 
-# run the Zope tests
-# XXX This is out of date and can't work.
-test_zope:
-   $(CD) $(BASE_DIR)/src/Zope
-   $(PYPCBUILDDIR)/python.exe utilities/testrunner.py -a
-   $(CD) $(BASE_DIR)
-
 clean_zope:
$(RMRF) src/$(ZOPEDIRNAME)
 

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


[Zope-dev] Zope tests: 6 OK, 2 Failed

2006-01-14 Thread Zope tests summarizer
Summary of messages to the zope-tests list.
Period Fri Jan 13 12:01:01 2006 UTC to Sat Jan 14 12:01:01 2006 UTC.
There were 8 messages: 8 from Zope Unit Tests.


Test failures
-

Subject: FAILED : Zope-2_9-branch Python-2.4.2 : Linux
From: Zope Unit Tests
Date: Fri Jan 13 21:10:37 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004008.html

Subject: FAILED : Zope-trunk Python-2.4.2 : Linux
From: Zope Unit Tests
Date: Fri Jan 13 21:12:07 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004009.html


Tests passed OK
---

Subject: OK : Zope-2_6-branch Python-2.1.3 : Linux
From: Zope Unit Tests
Date: Fri Jan 13 21:01:32 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004002.html

Subject: OK : Zope-2_6-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Fri Jan 13 21:03:06 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004003.html

Subject: OK : Zope-2_7-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Fri Jan 13 21:04:36 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004004.html

Subject: OK : Zope-2_7-branch Python-2.4.2 : Linux
From: Zope Unit Tests
Date: Fri Jan 13 21:06:06 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004005.html

Subject: OK : Zope-2_8-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Fri Jan 13 21:07:36 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004006.html

Subject: OK : Zope-2_8-branch Python-2.4.2 : Linux
From: Zope Unit Tests
Date: Fri Jan 13 21:09:07 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004007.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-dev] Re: Seeking brave souls to try Zope 2.9 Windows installer

2006-01-14 Thread Lennart Regebro
On 1/13/06, Tim Peters [EMAIL PROTECTED] wrote:
 While I'll be on vacation the next two weeks, I'll check email each
 day, and will be happy to give minor wink help with mysteries.

Only one real bug: No user is created (even though you type in name
and password). And of course zopectl doesn't work, so zopectl adduser
is out of the question. Luckily creating an inituser still works! :-)

Also, installing the shell files runzope and zopectl is kinda
pointless. Minor, I know, but it means you have to typetab twice when
tab expanding to run runzope in from a commandline. ;-)

When you run the instance creation you get a commandline, but you have
no idea where the current directory is, so if you just type in a
relative path, you don't know where the directory was created. (Turns
out it's in C:\Documents And Settings\username\ )

That's it so far! Great job!

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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] Re: Zope tests: 6 OK, 2 Failed

2006-01-14 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

This failure is tie up with Florent's recent checkin:

 Log message for revision 41303:
   When a database is created by hand from a custom_zodb.py during
   startup, we still want to put it in the dbtab multidatabases dict.
   
   This happens when unit tests call Zope2.startup(), because Testing has a
   specific custom_zodb.py loaded at startup that uses a DemoStorage.
   


Zope tests summarizer wrote:
 Summary of messages to the zope-tests list.
 Period Fri Jan 13 12:01:01 2006 UTC to Sat Jan 14 12:01:01 2006 UTC.
 There were 8 messages: 8 from Zope Unit Tests.
 
 
 Test failures
 -
 
 Subject: FAILED : Zope-2_9-branch Python-2.4.2 : Linux
 From: Zope Unit Tests
 Date: Fri Jan 13 21:10:37 EST 2006
 URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004008.html
 
 Subject: FAILED : Zope-trunk Python-2.4.2 : Linux
 From: Zope Unit Tests
 Date: Fri Jan 13 21:12:07 EST 2006
 URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004009.html
 
 
 Tests passed OK
 ---
 
 Subject: OK : Zope-2_6-branch Python-2.1.3 : Linux
 From: Zope Unit Tests
 Date: Fri Jan 13 21:01:32 EST 2006
 URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004002.html
 
 Subject: OK : Zope-2_6-branch Python-2.3.5 : Linux
 From: Zope Unit Tests
 Date: Fri Jan 13 21:03:06 EST 2006
 URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004003.html
 
 Subject: OK : Zope-2_7-branch Python-2.3.5 : Linux
 From: Zope Unit Tests
 Date: Fri Jan 13 21:04:36 EST 2006
 URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004004.html
 
 Subject: OK : Zope-2_7-branch Python-2.4.2 : Linux
 From: Zope Unit Tests
 Date: Fri Jan 13 21:06:06 EST 2006
 URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004005.html
 
 Subject: OK : Zope-2_8-branch Python-2.3.5 : Linux
 From: Zope Unit Tests
 Date: Fri Jan 13 21:07:36 EST 2006
 URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004006.html
 
 Subject: OK : Zope-2_8-branch Python-2.4.2 : Linux
 From: Zope Unit Tests
 Date: Fri Jan 13 21:09:07 EST 2006
 URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004007.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 )
 


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

iD8DBQFDyRgg+gerLs4ltQ4RAvpBAKDFYV1noIpWNS2r8IVYd8+adtRTFwCg2GAQ
S6KVZAmxMUmOEHO2GdHML/E=
=JAbE
-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 )


[Zope-dev] Re: Zope tests: 6 OK, 2 Failed

2006-01-14 Thread Florent Guillaume


I'll look at it.

Florent

Tres Seaver wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

This failure is tie up with Florent's recent checkin:



Log message for revision 41303:
 When a database is created by hand from a custom_zodb.py during
 startup, we still want to put it in the dbtab multidatabases dict.
 
 This happens when unit tests call Zope2.startup(), because Testing has a

 specific custom_zodb.py loaded at startup that uses a DemoStorage.
 




Zope tests summarizer wrote:


Summary of messages to the zope-tests list.
Period Fri Jan 13 12:01:01 2006 UTC to Sat Jan 14 12:01:01 2006 UTC.
There were 8 messages: 8 from Zope Unit Tests.


Test failures
-

Subject: FAILED : Zope-2_9-branch Python-2.4.2 : Linux
From: Zope Unit Tests
Date: Fri Jan 13 21:10:37 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004008.html

Subject: FAILED : Zope-trunk Python-2.4.2 : Linux
From: Zope Unit Tests
Date: Fri Jan 13 21:12:07 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004009.html


Tests passed OK
---

Subject: OK : Zope-2_6-branch Python-2.1.3 : Linux
From: Zope Unit Tests
Date: Fri Jan 13 21:01:32 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004002.html

Subject: OK : Zope-2_6-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Fri Jan 13 21:03:06 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004003.html

Subject: OK : Zope-2_7-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Fri Jan 13 21:04:36 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004004.html

Subject: OK : Zope-2_7-branch Python-2.4.2 : Linux
From: Zope Unit Tests
Date: Fri Jan 13 21:06:06 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004005.html

Subject: OK : Zope-2_8-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Fri Jan 13 21:07:36 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004006.html

Subject: OK : Zope-2_8-branch Python-2.4.2 : Linux
From: Zope Unit Tests
Date: Fri Jan 13 21:09:07 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004007.html



--
Florent Guillaume, Nuxeo (Paris, France)   Director of RD
+33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]
___
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] zpkgsetup

2006-01-14 Thread Shane Hathaway
I just updated a trunk checkout of Zope 2.  When I use 'python setup.py 
build_ext -i', I get this:


Traceback (most recent call last):
  File setup.py, line 32, in ?
import zpkgsetup.package
ImportError: No module named zpkgsetup.package

'make' fails the same way.  My checkout has nothing called zpkgsetup. 
Any clues?


Shane
___
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] Re: Seeking brave souls to try Zope 2.9 Windows installer

2006-01-14 Thread Tim Peters
[Lennart Regebro]
 Only one real bug: No user is created (even though you type in name
 and password).

Sorry, I'm not following this.  The installer never offers to create a
user (although it does ask you to supply a password for the fixed
admin user).  So you must be talking about something else, but I
don't know what.  For example, when logged in to the installed Zope as
admin, I had no problems creating new users from the acl_users
thingie.

 And of course zopectl doesn't work, so zopectl adduser
 is out of the question. Luckily creating an inituser still works! :-)

 Also, installing the shell files runzope and zopectl is kinda
 pointless.

I'm sure the Zope 2.8 (etc) Windows installers did the same here. 
This is controlled by the content of the top-level (in a Zope
checkout) skel/ directory:

C:\Code\Zope2.9dir/b skel\bin
runzope.bat.in
runzope.in
zopectl.in
zopeservice.py.in

So (exactly) those 4 things (without the .in suffix) get created in
an instance home's bin/ directory, regardless of platform.

Someone may wish to change Zope's utilities/mkzopeinstance.py to do
different things on different platforms, but that's out of scope for
this little project (which makes changes only under Zope's
inst/WinBuilders/:  the Windows installer-builder code).

 Minor, I know, but it means you have to typetab twice when
 tab expanding to run runzope in from a commandline. ;-)

?  Assuming you're running a native Windows NT+ shell (cmd.exe), you
set tab as your file completion character, and you're using NTFS as
the filesystem (so that tab completion suggests possibilities in
alphabetical order), then the sequence

r TAB

in an instance's bin directory completes to

runzope

and that's what you want. That doesn't actually run the file named
runzope, it actually runs the file named runzope.bat on Windows. 
I'm starting to suspect you don't normally use Windows, Lennart ;-)  I
certainly agree there's no _reason_ to create the runzope file to
begin with on Windows (except perhaps to keep mkzopeinstance.py
simple), but it doesn't actually get in the way of using tab
completion.

 When you run the instance creation you get a commandline, but you have
 no idea where the current directory is, so if you just type in a
 relative path, you don't know where the directory was created. (Turns
 out it's in C:\Documents And Settings\username\ )

I'm sure all earlier Zope Windows installers created stuff that did
the same here too.  If that isn't wanted, then Zope's
utilities/mkzopeinstance.py is again the thing that would need to be
changed.

 That's it so far! Great job!

Thank you for trying it!  I'm just relieved it didn't melt your hard drive ;-)
___
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] Re: zpkgsetup

2006-01-14 Thread Philipp von Weitershausen
Shane Hathaway wrote:
 I just updated a trunk checkout of Zope 2.  When I use 'python setup.py
 build_ext -i', I get this:
 
 Traceback (most recent call last):
   File setup.py, line 32, in ?
 import zpkgsetup.package
 ImportError: No module named zpkgsetup.package
 
 'make' fails the same way.  My checkout has nothing called zpkgsetup.

It does, zpkgsetup is in 'buildsupport'. setup.py mangles 'buildsupport'
into sys.path first thing. That must fail somehow. It's hard to say why
since it works over here.

Philipp
___
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] Re: zpkgsetup

2006-01-14 Thread Shane Hathaway

Philipp von Weitershausen wrote:

Shane Hathaway wrote:


I just updated a trunk checkout of Zope 2.  When I use 'python setup.py
build_ext -i', I get this:

Traceback (most recent call last):
 File setup.py, line 32, in ?
   import zpkgsetup.package
ImportError: No module named zpkgsetup.package

'make' fails the same way.  My checkout has nothing called zpkgsetup.



It does, zpkgsetup is in 'buildsupport'. setup.py mangles 'buildsupport'
into sys.path first thing. That must fail somehow. It's hard to say why
since it works over here.


Just now, I entered the 'buildsupport' directory and typed 'svn up', and 
the zpkgsetup directory magically appeared this time.  Either someone 
fixed this or Subversion is doing something mysterious.  Thanks.


Shane
___
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] No more CR/LF support in PythonScripts with Zope 2.9.0

2006-01-14 Thread Lennart Regebro
On 1/13/06, Dieter Maurer [EMAIL PROTECTED] wrote:
 Patrick DECAT wrote at 2006-1-10 15:41 +0100:
 I just upgraded my application from Zope 2.8.5 to Zope 2.9.0 and
 noticed that PythonScript doesn't support CR/LF line endings anymore
 (a la Windows).
 Converting my scripts to the Unix format fixes the problem.
 
 Is this new behaviour intented ?

 I know that this behaviour occurs when you use Python 2.4.x.

Ouch, that's bad. Do you have any more refereces to this?

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


[Zope] Can ZServer or ZPublisher be coaxed to return port 80 response..??

2006-01-14 Thread Eric.Roby
We have a new firewall and firewall guru...  He wants the firewall to 
handle and route port 80/443 requests to pound instances running on port 
8080 and 8443.  Whereby pound routes said requests to appropriate 
back-end Zope servers (running on other high-end ports).  Obviously - in 
this new scenario - Zope will return requests with the 8080 and 8443 
ports attached to the response URL.  He wants Zope to respond, in-kind, 
with URLs re-written to port 80 and 443.  I have tried messing with Site 
Access (messing with SERVER_URL in the REQUEST) and can strip out the 
8080 and replace with 80, but there are side effects and this just 
doesn't seem right.


Is there a saner way, possibly within the zope.conf config items (like 
CGI)  or some other deep ZopeZen magic that can address this or would 
it require some deep patching  ..??


Certainly Apache (re-write) between pound and Zope would probably 
address this but that seems kinda silly...


Yes - we had a very nice, clean, simple setup before with pound running 
on the low ports, however, there seems to be concerns (now) that pound 
is a security risk running on low ports in our DMZ.  I recommended 
RootJail but it seems he is insisting on pushing this new scenario.


Any suggestion(s) or points to docs greatly appreciated..

Long time Zope user

TIA

Eric
___
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] Can ZServer or ZPublisher be coaxed to return port 80 response..??

2006-01-14 Thread Andreas Jung



--On 14. Januar 2006 07:46:14 -0600 Eric.Roby [EMAIL PROTECTED] wrote:


We have a new firewall and firewall guru...  He wants the firewall to
handle and route port 80/443 requests to pound instances running on port
8080 and 8443.  Whereby pound routes said requests to appropriate
back-end Zope servers (running on other high-end ports).  Obviously - in
this new scenario - Zope will return requests with the 8080 and 8443
ports attached to the response URL.  He wants Zope to respond, in-kind,
with URLs re-written to port 80 and 443.  I have tried messing with Site
Access (messing with SERVER_URL in the REQUEST) and can strip out the
8080 and replace with 80, but there are side effects and this just
doesn't seem right.


I've no idea about Pound but if you use and setup virtual hosting properly 
then you should never  have the need for such hacks, never.


-aj



pgpE6J1Ge55GT.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] ANN: ZSyncer 0.7.1-beta1 released

2006-01-14 Thread Paul Winkler
On Fri, Jan 13, 2006 at 09:08:26PM -0600, Carlos de la Guardia wrote:
 Hi,
 
 we just installed Zsyncer 0.7.1-beta1 on a couple of our servers and have
 run into some problems with page template synchronization. Some items that
 have different time stamps on the server and on the development machines
 show on th sync screen as synchronized even when they are different. Then if 
 we do a 'get' from the client, it fetches the file but the objects now
 appear as unsynchronized! 

Yes.  These are limitations of comparing objects that have only
a bobobase_modification_time timestamp.
See ZSyncer/README.txt, in the Usage section.

Solving this problem is hard. See ZSyncer/TODO.txt.

 We are using Zope 2.8.0 on the clients (Windows)
 and Zope 2.8.4 on the server (Linux), could this be the problem?

I have no experience running clients and server on different
platforms, but I doubt that is the issue.

Do the system clocks on client and server agree?
It's best if they are as close as you can make them.

You might also try adjusting the fudge_secs value in ZSyncer/Config.py.
Read the comment describing its purpose.

-- 

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] request.set('AUTHENTICATED_USER',...

2006-01-14 Thread Stefan H. Holek
AUTHENTICATED_USER has been deprecated aeons ago and should have 
vanished from the REQUEST by means of bit rot alone ;-). You have to 
ask the security manager for the current user:


from AccessControl import getSecurityManager
getSecurityManager().getUser()

This is allowed in Python Scripts, AFAIK.

Stefan


On Jan 13, 2006, at 20:22, Brian Brinegar wrote:


We are running Zope 2.6.x and I noticed yesterday that I could do the
following:

  acl_users = container.acl_users
  user = acl_users.getUser('test_user')
  request.set('AUTHENTICATED_USER',user)
  print request.AUTHENTICATED_USER.getUserName()

This isn't a huge deal since it doesn't seem to change the permissions
available to the user. But many of our scripts rely on
AUTHENTICATED_USER.getUserName() to return the actual logged in user. 
Is

this addressed in later versions of Zope? Is there a better way to get
the current user's user name?


--
The time has come to start talking about whether the emperor is as well
dressed as we are supposed to think he is.   /Pete McBreen/

___
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] Can ZServer or ZPublisher be coaxed to return port 80 response..??

2006-01-14 Thread Stefan H. Holek

A fairly common setup is to have:

  Apache with appropriate VHM rewrite rules -- pound -- 2-n ZEO 
clients


If you don't want Apache in front, it is also possible to configure the 
VHM directly (inside Zope). Writing your own access rules and mucking 
with the URLs is neither necessary nor encouraged.


Stefan


On Jan 14, 2006, at 14:46, Eric.Roby wrote:

We have a new firewall and firewall guru...  He wants the firewall to 
handle and route port 80/443 requests to pound instances running on 
port 8080 and 8443.  Whereby pound routes said requests to appropriate 
back-end Zope servers (running on other high-end ports).  Obviously - 
in this new scenario - Zope will return requests with the 8080 and 
8443 ports attached to the response URL.  He wants Zope to respond, 
in-kind, with URLs re-written to port 80 and 443.  I have tried 
messing with Site Access (messing with SERVER_URL in the REQUEST) and 
can strip out the 8080 and replace with 80, but there are side effects 
and this just doesn't seem right.


Is there a saner way, possibly within the zope.conf config items (like 
CGI)  or some other deep ZopeZen magic that can address this or 
would it require some deep patching  ..??


Certainly Apache (re-write) between pound and Zope would probably 
address this but that seems kinda silly...


--
The time has come to start talking about whether the emperor is as well
dressed as we are supposed to think he is.   /Pete McBreen/

___
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] python product structure

2006-01-14 Thread Carlos de la Guardia
hello all,

I want to document the recommended structure of a product. I blogged
about this at
http://blog.delaguardia.com.mx/index.php?op=ViewArticlearticleId=30blogId=1.

I would like some comments on what I believe are the possible
structures. First, here's more or less what everybody uses these days:

 / MyProduct
  | __init__.py| config.py| MyProduct.py| utils.py/ docs/ zpt/ www / tests

I'm
not sure whether to include a help directory anymore. Maybe I'm wrong,
but I don't think many people use the Zope management help API.
But
if one is going to work with Zope 2.8 and use Five, there is also this possibility,
which also has some common elements with Plone/CMF structures:

 / MyProduct
  | __init__.py| MyProduct.py| configure.zcml | browser.py| interfaces.py| utils.py/ adapters/ docs/ skins/ tests

Some
people seem to use an interfaces directory instead of a file, and the
same thing happens with browser.py. I still have to do some research
about this and explain all the parts at least briefly, but I wanted to see if anyone wants to comment on this first.

Thanks,

Carlos de la Guardia
___
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 )