RE: [Zope] FTP acquisition problem with Zope 2.10.1

2007-01-11 Thread Christian Steinhauer


Would someone who can reproduce this please file a bug report 
in the collector?

yes would be nice to patch that in 2.10.2. I think andreas want to
release the new version next week. maybe we can wait with the release. 

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


RE: [Zope] How to get the type of an object by dtml

2006-12-01 Thread Christian Steinhauer

 Could anyone help me.. how do I use DTML to return the type of the
object I'm currently working with?

If you want to get the html elements like b p input you should
have a look at javascript - document.getElementsByTagName(p)

you can cominate it with for or while loops or go directly to the objecs
document.getElementsByTagName(p)[0].firstChild.data = new;

- cs 


___
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] error with simple python script loop

2006-11-27 Thread Christian Steinhauer
 
   context.MailHost.send('bodytext', [EMAIL PROTECTED],
[EMAIL PROTECTED],
 'subj'+str(i))
 ###
 This script produces: HTTP/1.1 204 No Content

Moral of the story: if you want sane things to happen, make sure your 
script returns a string output.

Otherwise you risk tickling some of the more arcane features of Zope 
2's publisher. They include no content
responses if you return None and even weirder things if you return a 
two-element tuple.

This isn't a bug, you're doing something silly, stop doing it ;-)

Here i must add that it is an test script for the list only, the real script
which has produce the error is bigger and it has an output of string. But
the part which is sending the mail has produce the double emails, so i debug
this part. 

Here is a bit of the original script, so tell me again why i get the error,
because it has an string output. 

###
recp_list = []
request.set('Query','SQL SELECT')

for i in context.sql_query():
  mMsg = 'test'
  mTo = str(i[m_to])
  mFrom = str(i[m_from])
  mSubj = str(i[l_subject])
  context.MailHost.send(mMsg, mTo, mFrom, mSubj)
  recp_list.append(i[u_email])

recp_output = str(recp_list)
mRet = 'E-Mails send to:br' + recp_output + 'brbr'
return mRet
###

This script is the part of the devil ;) It has produce the double emails, i
have cut some lines codes to get it faster to understand. 

- cs

___
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] error with simple python script loop

2006-11-27 Thread Christian Steinhauer

Have you tried what I posted before? I mean try to add to your script:
container.REQUEST.RESPONSE.setHeader('content-type', 'text/html')

I'm curious if this changes anything.

yes i test this and then the header is everytime 200 OK - so no problem. But
i test this only with my 2 lines of code test script, not with the big
application. Now the IE7 does it better i think, but i must test this next
days. 

___
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] Help! Can't Log Into ZMI!!

2006-11-26 Thread Christian Steinhauer
 
here you can find some additional informations for zpasswd: 
http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/Security.stx

search for Creating an Emergency User

- cs



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Nancy Donnelly
Sent: Sunday, November 26, 2006 5:10 PM
To: zope@zope.org
Subject: [Zope] Help! Can't Log Into ZMI!!


Hi;
I added a LDAPUserFolder instance to my Plone. It didn't connect for
whatever reason. I rebooted the server. Now I can't log in! It just hangs.
Actually, I rebooted a day later and did lots of work in between, so it's
not like I could carefully edit the Data.fs. What do I do?
Nancy




___
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-dev] version.txt magic

2006-11-25 Thread Christian Steinhauer
 
Zope 2.9 and Zope 2.10 currently show up with unreleased 
version inside the  control panel. App/version_txt.py tries 
to read the file lib/python/Zope2/version_txt. This file is 
usually created by the 'makefile'. The makefile of Zope 2.9 
create the file in the proper location however in Zope 2.10 
the makefile creates lib/python/version.txt.
Is there a particular reason for this? I currently have now 
clue what  is bug and what is intended behavior. Any insights? 
*sigh* :-)

i check the old source of version_txt.py on my zope 2.6.4 server and there
is the file called version.txt, not version_txt. But the App/version_txt.py
on the new zope 2.10 is very different from the 2.6.4 one. 

As i see you fixed it. Can you give me a description how to fix it or have
you done a thread into an bugtracker?

___
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] version.txt magic

2006-11-25 Thread Christian Steinhauer
i dont want to make a new installation on our live server, so i make a ugly
patch for our programmers that think that is a dev version because of the
'unreleased version' text.

i which zope version is the patched applied? 2.10.2?

Line 42 of /usr/lib/zope2.10/lib/python/App/version_txt.py

#   ss = 'unreleased version'
ss = 'Zope 2.10.0-final (version_txt patch by CS)'

___
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] version.txt magic

2006-11-24 Thread Christian Steinhauer
Hi,

Zope 2.9 and Zope 2.10 currently show up with unreleased 
version inside the  control panel. App/version_txt.py tries 
to read the file lib/python/Zope2/version_txt. This file is 
usually created by the 'makefile'. The makefile of Zope 2.9 
create the file in the proper location however in Zope 2.10 
the makefile creates lib/python/version.txt.
Is there a particular reason for this? I currently have now 
clue what  is bug and what is intended behavior. Any 
insights? *sigh* :-)


Hi Andreas,
i got the same *error* on the new zope 2.10 instance. Installed over
newly created zope2.10 debian package.

- cs
___
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] error with simple python script loop

2006-11-24 Thread Christian Steinhauer
I have an problem with this little script. The script is in the zope
file structure and it is an -Script (Python)- 

The script should send 2 emails over the mailhost, but it sends 4
emails. I have test this with maildrophost product too, same problem. I
have test it on Zope 2.10.0 and Zope 2.64. The problem is the same -
everytime. 

This script produce the error:
 start 
for i in range(2):
  subj = str(i) + ' range python'
  context.MailHost.send('range test with python', [EMAIL PROTECTED],
[EMAIL PROTECTED], subj)
 end 

This script produce no error: 
 start 
for i in range(2):
  subj = str(i) + ' range python'
  context.MailHost.send('range test with python', [EMAIL PROTECTED],
[EMAIL PROTECTED], subj)
return 'eof'
 end 

So if i make a return (not in the loop) the script works fine. 
Can anybody tell me why? It feels like that there are any spaces in the
script and zope/python did not work correctly when there is no other
procedure after the for loop. I dont understand why he calls the loop
two times and produce 4 emails. There is no transactional error in the
error_log.

thx for help
___
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] error with simple python script loop

2006-11-24 Thread Christian Steinhauer

 

As I said in the tracker, no one can help you if you don't 
actually give us the full traceback and exception that you got.

There is no traceback, i got no error - thats why i have post it into
bug tracker. I spoke to many people but no one can tell me why it
occured. The most said that it must be a bug in zope or python. 

@Maciej: I call the script simple over url or the test button - it is
a script for testing only - it is not called by any other 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] error with simple python script loop

2006-11-24 Thread Christian Steinhauer
I just cut and pasted your code into a python script on my 
Zope installation 
(2.9.2) and it worked as expected (ie. 2 emails sent). So 
something is 
pooched in your installation.

A quick way to check to see if your script is looping more 
than you expect 
is to do something like:

loopCheck = []
for i in range(2):
  subj = str(i) + ' range python'
  context.MailHost.send('range test with python', [EMAIL PROTECTED], 
[EMAIL PROTECTED], subj)
  loopCheck.append(subj)
return loopCheck

If you are getting only 2 iterations of the loop (as it 
should be), then 
something is wrong with your MailHost (if this is the case 
try deleting it 
and re-adding it).  Another test: place a local copy of 
MailHost in the same 
folder as your script and see what happens.

Hi Jonathan, thanks for taking care of the problem. I have done the self test 
you do with the list. But everytime when something is written at last line, 
example return 'eof' (My example in the topic) the error did not occured - so 
the list gives me 2 and i will get 2 emails.

The error only occured when nothing is written under the loop. 

I have 2 real separeted dedicated servers, one with zope 2.6.4 and one with 
2.10 - the problem occured on both servers.
So i used the zope product MailDropHost too and get the self error on both 
server. With MailDropHost i can see a spooler - thats nice - but in the spooler 
i see 4 emails. So the Operating System or Exim get 4 Mails from Zope/Python. 
I´m using Debian 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] Re: [Zope-dev] version.txt magic

2006-11-24 Thread Christian Steinhauer
Zope 2.9 and Zope 2.10 currently show up with unreleased 
version inside the  control panel. App/version_txt.py tries 
to read the file lib/python/Zope2/version_txt. This file is 
usually created by the 'makefile'. The makefile of Zope 2.9 
create the file in the proper location however in Zope 2.10 
the makefile creates lib/python/version.txt.
Is there a particular reason for this? I currently have now 
clue what  is bug and what is intended behavior. Any 
insights? *sigh* :-)

Hi Andreas, 
i got the same *error* on the new zope 2.10 instance. Installed over
newly created zope2.10 debian package.

- cs


___
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] error with simple python script loop

2006-11-24 Thread Christian Steinhauer
I tried to reproduce your '4 iteration' problem on my Zope 2.9.2 
installation, but even by removing the 'return' statement I 
still got 2 loop 
iterations (and 2 emails).

I have never written a python script that did not have a 
'return' statement. 
I don't know if it is mandatory or not. I usually use python 
scripts as 
subroutines/functions and I always have a return statement  
(even if it is a 
bare return - ie. the return statement does not send back any data).

As Andreas suggested, if you want to track this down you are 
going to have 
to use a debugger like pdb.

I have test the script on my local windows python version with an print 
statement, and it works fine - everytime - so its only on zope. i cant use pdb 
on zope´s python script i think? 
___
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-dev] Re: Installer for Windows (quick question)

2006-11-10 Thread Christian Steinhauer
It´s very nice to hear that you take care of the windows builds. It would be 
nice to get an little description how to build an WZope, which tools are 
needed. So we can take a look how difficult it is to build an WZope.

My windows zope configuration would be
c:\zope\version\instance

some applications use tinytables which is not supported in new zope versions. 
So my solution is in thinking of versions, not in instances. 

I dont like the program folder (in germany called Programme) because on an 
Windows Server there is not so much services on the computer - so an exclusive 
c:\zope is the best ;) 

I dont need an service installer but i know many windows administrators that 
would ask me - why did this product doesnt run as service stupid open source 
software or somethink like that ... i like the zope window on the desktop, 
nice debugging ;) 

greetings  many thanks for taking care of the windows builds, 
christian
___
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] Installer for Windows -- Icon

2006-11-10 Thread Christian Steinhauer
is it possible to use the logo from zope corp? 
http://www.zope.com/about_us/legal/zope_logo_usage.html

if yes i can convert it an give all knows formats and sizes you need.

christian

 

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] Im Auftrag von Sidnei da Silva
Gesendet: Donnerstag, 9. November 2006 22:04
An: zope-dev@zope.org
Betreff: [Zope-dev] Installer for Windows -- Icon

Anyone has a good Zope icon for Windows, with multiple sizes, 
that can be contributed?

--
Sidnei da Silva
Enfold Systemshttp://enfoldsystems.com
Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214
___
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 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] Maintainer of Zope 2 Windows builds?

2006-11-01 Thread Christian Steinhauer
Hi, 
since month there is no new windows build of the zope2 releases. It would be 
nice if someone can make a decision who can take care of the build for the 
windows version. I´m not a fan of zope for windows but some people need it for 
windows servers and companys where they dont want to upgrade to linux os.



___
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] Error Value: domains

2005-06-04 Thread Know-iT - Christian Steinhauer
Hello zope list,
i have an zope server with 5 instances. Now on 1 instance there is an
error on the acl_users folder.

Everytime i click on a user in the folder to edit him there occureres this
error:

-
My error:
-
Error Type: AttributeError
Error Value: domains

Troubleshooting Suggestions

Traceback:
Traceback (innermost last):

Module ZPublisher.Publish, line 98, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 39, in call_object
Module AccessControl.User, line 937, in manage_users
Module Shared.DC.Scripts.Bindings, line 306, in __call__
Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
Module App.special_dtml, line 180, in _exec
Module DocumentTemplate.DT_Util, line 201, in eval
__traceback_info__: user
Module string, line 0, in ?
AttributeError: domains


-
System Information:
-
Zope Version  (Zope 2.6.4 (source release, python 2.1, linux2), python
2.2.3, linux2)
Python Version  2.2.3+ (#1, Feb 9 2005, 12:31:40) [GCC 3.3.5 (Debian
1:3.3.5-8)]




Does anybody know this error and why it occurs?
Thanks for help.

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