Re: [Zope] Zope2 - pro/contra

2015-03-16 Thread robert rottermann
I just had to port an Intranet to modern hardware/Linux that has been created 
in  1996 using plain zope and has been "programmatically" untouched since 2001.

The Intranet is rather complex and provides a kind of ERP on very technical 
data.
The application consist of some 1000 little dtml scripts and is totaly 
unmaintainable.

But it runs and runs and runs and is heavily used..

Unhindered by the fact that the inner working of the Intranet is unfathomable 
the transition to an up to date virtualized linux, actual postgres and such  
went rather easily.


Zope might be a zombie, but it is a great and sturdy one ..

hats of to its creators..

robert


On 17.03.2015 02:37, Jesus Cea wrote:

On 07/03/15 16:30, Simon Michael wrote:

I've sent you a download link.

I’m somewhat familiar with it, as I managed at least the zope2 wiki (and
wrote Zwiki)

ZWIKI... God...

Is there any possibility of upgrading it to support current Zope2?. I
have currently two zope instances: a current zope and an aging Zope 2.10
just to host ZWIKI :(.

About current topic: I am not a web developer. I host my (heavy)
personal ZOPE webserver and a handful of WSGI handcoded services. But my
Zope webserver is working well and I am happy with it. Every now and
then I have to write new logic and I must decide to "invest" into Zope o
just bite the bullet and jump to Django, Piramid, whatever.

I am keeping Zope because I am using it since 1998 and I know it
inside-out. I can do whatever I want with it and the HUGE learning curve
is already amortized. I just consider other choices because I feel that
Zope 2 is a dead-end, not because I am unhappy with it. But Zope wins
every time so far :)

That said, documentation is really painful. It is very fragmented and it
is not easy to separate "outdated" from "current". Messy. Since current
codebase seems to change really slowly (mature!) I would love to see a
documentation effort. Not holding my breath :-(. Most of the time, when
implementing something new, I don't have any other choice than dive into
the Zope sourcecode. Doable but time-wasting.



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


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


Re: [Zope] Troubles with a Zope-2.7.7-final instance

2014-03-17 Thread robert

Am 17.03.2014 09:05, schrieb Herbert Liechti:

Hello

I have some troubles with a customers system whos maintainer is no 
longer available. There was a zope 2.7.7 instance running there until 
last week. The system was rebooted after a long time an the instance 
did not come back online.


I tried different things and after all I compiled python2.4 and all 
dependend stuff (I found all sources on the system). Now the instance 
is starting up with zopectl start. Unfortunately after a few minutes 
the instance dies without any messages in the log files. I tried to 
increase the log level but it has no effect.


The instance should listen on port 8080. But I never encountered a 
listen on that port when I start up zope. I have no idea where to 
search now.

This looks as if some products (zope plugins) are not started correctly.

Try to start zope in the foreground using:
bin/zopectl fg

then you see at least if zope starts correctly at all.
You should see a message:
INFO Zope Ready to handle requests

ah, and an other idea:
is your instance zeo based?
if yes, did you start zeo before starting zope?

if there is a file called
bin/zeoctl

you have to run it before starting zope with:
bin/zeoctl start

hope this helps
robert




I'm not very familiar with zope. Any help is much appreciated.

Thanks

Herbie


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


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


Re: [Zope] SQL and Python Products

2013-01-16 Thread robert rottermann

Hi Luiz,
use  sqlalchemy together with z3c.saconfig.
Powerfull, flexible, easy to use ..

And in martin aspelis book is a chapter how to use them ..

robert

On 01/16/2013 07:34 PM, Luiz Pasqual wrote:

Hi,

We are trying to migrate a very old application on Zope 2.9, first we 
thought to migrate to Python Products and then upgrade Zope.


We don't know what's the best way to deal with SQL querys in Python 
products. He is some options we are evaluating:


- SQLAlchemy, leaving behind ZSQLMethods e Zope DA's
- Psycopg
- Python code access a Zope DA inside Zope

So, what you guys think?

Thanks.

--
Luiz Fernando Pasqual S. Souza
mail: l...@pasquall.com <mailto:l...@pasquall.com>


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


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


Re: [Zope] path of a fileupload instance

2012-11-14 Thread robert rottermann

to my knowledge, for security reason no modern browser submits the path anymore.
If you need the path, you have to create your own file uploader or use a tool 
like uploadify (http://www.uploadify.com)

I *think* javascript gets you access to the full path.

robert
On 11/14/2012 08:35 AM, Kees de Brabander wrote:

I was using IE and filename is just the file name, no directory information. So 
I will have to take another approach. Does a FileUpload instance have any other 
attributes than filename and header?

On Nov 13, 2012, at 6:11 PM, Andreas Jung wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

This is subject to browser. All browser - except IE (afaik) - only
submit the filename without directory information.

- -aj

Kees de Brabander wrote:

Correct, but the filename attribute contains just the filename, not
the path of the directory where it was uploaded from? cb On Nov 13,
2012, at 11:04 AM, Andreas Jung wrote:

REQUEST.yourfile.filename. The FileUpload instance has a 'filename'
attributes.

-aj

Kees de Brabander wrote:

Hiya

I have a form with a field for a FileUpload object, which works
ok. However, in my application I want to capture the path of
that file, because I want to open still other files that I know
by name from that very same directory. Any idea how to do that?
The REQUEST simple contains the FileUpload instance.

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


- -- 
ZOPYX Limited | Python | Zope | Plone | MongoDB

Hundskapfklinge 33| Consulting & Development
D-72074 Tübingen  | Electronic Publishing Solutions
www.zopyx.com | Scalable Web Solutions
- --
Produce & Publish - www.produce-and-publish.com


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQGUBAEBAgAGBQJQon9AAAoJEADcfz7u4AZjSwsLv0Q6WXixh/gYddZObYa1O3F4
EmhCoFjfAwgFtT8WkWpTkP4l0myjOUqPdOhJvvBxPIAtqTDPu6V6YEXM5nK1loE4
Shjz3feKRsxP784arefzD1CpRiN/YQhMSn+ZYMyy/IpHV1Ypy7vsF1HJSaCY8sqm
yaItArafhVrCrrSwGxOCaUNG83w6m0X0MlEg/phCmW3Lkz4lvwcgehEuiqHGYnrE
TwpAiBnS4ucjdgR+Zkf9sSmxKkjUiBuYenHgsHZiXwDxYaXQra1NHeCrQha1DASx
EliQuhN9Qz/A+4ZiAHj9yMwrVDEeK4oCwAxBuSsIxhO48Bj9mjXm33iSkyi0L7o7
1I0DQqCKl/1Rh6gFUmBtztzAvcz/vtB5tfjZ71u9zdQARd9zX2YKkdRQnA/l+tIG
WgwbsR/Ium2xyDp9Piqfw0rGlZzLZrp3ekbAHVwdAHR7hqGUh6nXotbJVgCOjTDz
PorJJ9CA/DZ+SWHQcQXyC8wtImS6zAI=
=aN3X
-END PGP SIGNATURE-


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


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


Re: [Zope] CMF -?-> Zope

2011-06-23 Thread robert rottermann
On 23.06.2011 16:14, Eric d'Halibut wrote:
> On 6/23/11, robert rottermann  wrote:
>
>> as root (or using virtualenv)
>> easy_install-2.6 -U ZopeSkel
>> then as user zope (or what ever)
>> paster create -t plone4_buildout NAMEOFNEWBUILDOUT
> This last command gives me a sternly-worded, and appearing, warning:
>
> **   *** NOTE: You probably don't want to use this template!
the alternative would be to use an Installer.
which I never do and (maybe therefore) see not advantage in using over plain 
buildout.

robert

> **  Since Plone 3.1, the preferred way to get a buildout-based setup
> **  for Plone is to use the standard installer for your operating
> **  system (the Windows installer, the Mac installer, or the Unified
> **  Installer for Linux/Unix/BSD).
>
> How big a deal is this, especially in view of me running said command
> under the /home/ hierarchy where it's not going to -- I hope -- do
> much systemic damage?
>
> And what if someone wants simply to install Zope and the CMF, and not
> yet make the leap to Plone?
>
> It seems the "message" I am getting is 'all roads lead to Plone!'
>
> Thanks,
>
>

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


Re: [Zope] CMF -?-> Zope

2011-06-23 Thread robert rottermann
as root (or using virtualenv)
easy_install-2.6 -U ZopeSkel
then as user zope (or what ever)
paster create -t plone4_buildout NAMEOFNEWBUILDOUT
cd NAMEOFNEWBUILDOUT
python2.6 bootstrap
bin/buildout

and your new site is ready to start with
bin/instance fg

point your browser at localhost:8080/manage

install a new plone site ..

robert

On 23.06.2011 06:48, Eric d'Halibut wrote:
> I am a straggler returning to Zope after years away from it. I come
> from a time when to install a product into one's Zope one simply
> untarred it into one's Products folder and restarted. Now I am looking
> at easy_install, buildout, and the new mania for "eggs." Imagine my
> discomfiture.
>
> But never mind all that. I now have a running instance of Zope 2.12.10
> installed in NetBSD 5.1. I want to install CMF into it, which used to
> be one's first product chore (almost) since plone depended on it and I
> was heading for a plone install, (and later on ran Silva for a couple
> of years.) But I am here tonight to say, I am stumped.
>
> How do get CMFCore into my zope instance "the right way?" Can someone
> lay out the steps for me?
>
> My python is: /usr/pkg/bin/python2.6
>
> My Zope is at: /usr/local/src/Zope2-2.12.10
>
> My instance is at: /usr/local/Zopeish
>
> I have banged around with easy_install, which writes things into my
> NetBSD /usr/pkg hierarchy, of which I very much disapprove. Buildout
> seems always to want to build the original gazillion (not
> complaining!) Zope packages every time I ry to use it.
>
> So...glad to be back. Need help. Will write if I get work. Wish you were here.
>
> nb. The running Zope instance is "live" on the net, so if one needs to
> examine my ZMI I can provide URL and login. Just ask, please.
>
>

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


Re: [Zope] Migrating a legacy Zope2 app to use buildout.

2011-06-17 Thread robert rottermann
On 17.06.2011 23:57, Jason J. W. Williams wrote:
> Hello,
>
> Currently, we have a Portal that was built starting in 2004 before
> buildout was available, so our development method has been to export
> and import from the Zope2 WebUI for deployment. That's been a real
> pain and since we've automated the rest of our infrastructure with
> Chef we'd like to be able to do that with Zope. So my question is does
> anyone have pointers for migrating an app that mostly lives in the
> ZODB to a build-out style architecture that we could control with
> Chef? I see tutorials on starting a new Zope 2 app from scratch with
> buildout but nothing on migrating an older one to build out. For
> example, how would we create objects like MySQLUserFolders etc from
> buildout? Thank you in advance.
>
> -J
> ___
> Zope maillist  -  Zope@zope.org
> https://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>   https://mail.zope.org/mailman/listinfo/zope-announce
>   https://mail.zope.org/mailman/listinfo/zope-dev )
First, would it not be worthwhile to migrate to a newer Plone?
We also still run some very old Plone sites. However, as soon as we have to 
touch one of them in a non trivial way, we migrate.
It is a might require some efforts, especially if you have customized your site 
heavily.

If you can not migrate:
Why do you want to have buildout creating MySQLUserFolders?

Buildout is about setting up your Zope/Plone environment, not about creating 
data.
You set up a buildout 2.5 with all the tools you need. Then, when it runs to 
your satisfaction you copy over the Data.fs of your NOBuildout structure.

robert


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


Re: [Zope] WebDAV lock in Zope 2.11.4

2010-12-02 Thread robert rottermann
Am 02.12.2010 18:53, schrieb Brian Sullivan:
> Somehow in testing use of ExternalEditor product I have set the WebDAV
> lock on a file. The problem is that the lock doesn't seem to appear in
> the list of locks from the Control Panel, nor does it clear on a
> restart. I am at loss -- how do I proceed?
>
> Is there anyway around this?
> ___
> Zope maillist  -  Zope@zope.org
> https://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>   https://mail.zope.org/mailman/listinfo/zope-announce
>   https://mail.zope.org/mailman/listinfo/zope-dev )
be aware that you must enter a path when scanning for locks.
it is not enough just to click on the search buton.

i tripped over this once..

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


Re: [Zope] Date utility for Zope (V2)

2010-11-09 Thread robert rottermann
Am 10.11.2010 02:00, schrieb Brian Sullivan:
> I guess I having a mental block then. To use it from what I know I
> would have create a Zope 2 product from it somehow or create callable
> scripts in the ZMI from the provided code. Neither seems reasonable.
>
> Is there other way to use the code that I am not understanding?
it is enough to create an external python script.
this is a "normal" python script that has to reside in
YOUR ZOPEINSTANCE/parts/instance/Extentions

you can do what ever you like in such a script.
there are no restrictions (that I know of).

robert
>
> On Tue, Nov 9, 2010 at 6:11 PM, Lennart Regebro  wrote:
>> On Tue, Nov 9, 2010 at 22:12, Brian Sullivan  wrote:
>>> On another forum this http://labix.org/python-dateutil was suggested
>>> -- it looks to be close to what I was thinking --
>> I second that.
>>
>>> but I am not totally
>>> sure how I can use it in Zope (a level of incompetence issue no
>>> doubt).
>> You would use it as you would use it outside Zope. No difference, it's
>> just all Python.
>>
>> //Lennart
>>
> ___
> Zope maillist  -  Zope@zope.org
> https://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>   https://mail.zope.org/mailman/listinfo/zope-announce
>   https://mail.zope.org/mailman/listinfo/zope-dev )

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


Re: [Zope] commit problems psycopg

2010-08-23 Thread robert rottermann
fyou probably need to commit the data
??
robert
Am 23.08.2010 18:24, schrieb Richard Harley:
>We have had a problem with postgresql 8.3 on a Windows server 2008. I
>wonder whether there has been any other experiences like this. We have
>connected to Potsgres from Zope via a Psycopg adapter and noticed that
>sometimes when data is inserted via a form in Zope, the data is
>available in Zope but doesn't get committed to the database. This has
>come to a head over the weekend where at least one month's worth of data
>has disappeared and this includes changes to the actual database
>structure - luckily only on a testing machine, but concerning nevertheless.
>The data seemed to disappear after we upgraded to the most recent
>version of Zpsycopg2 database adapter, previously we were using version
>1 (I know it's old, we are only testing after all) and have never had
>these sorts of problem before. It's almost as if all the data and
>changes to the db were held in memory, and Postgres continued to work
>fine from there, but when the db adapter was changed and Zope restarted
>everything was cleared from memory.
>Has anyone had similar experiences or can anyone cast any light on where
>the problem may lie. To us it seems the db adapter is the most likely
>candidate but we can't understand how this could happen, explanations
>also welcome. Have posted this to psycopg list too.
> Thanks
>
>
> ___
> Zope maillist  -  Zope@zope.org
> https://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>   https://mail.zope.org/mailman/listinfo/zope-announce
>   https://mail.zope.org/mailman/listinfo/zope-dev )
>
>
>

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


Re: [Zope] Storing DTML in SQL

2010-08-19 Thread robert rottermann
>
> By far the majority of new deployments use zope 2 though...
>
>
of course.
zope 2 does use 5 which is a zope2/3 bridge.
plone is VERY zope3/five based ..

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


Re: [Zope] Storing DTML in SQL

2010-08-19 Thread robert rottermann
Am 18.08.2010 18:56, schrieb Andrew Milton:
> +---[ robert rottermann ]--
> | I think storing dtml in a db is wrong by design.
> | I do lots of dynamic websites that are generated from external data.
> | i had no need for a single line of dtml yet ...
>
> I've seen it used a lot in PHP systems like PHP-Nuke, where the widget
> code is executed out of strings in the db. Whether it's necessary or
> not in this instance is debatable.
>
>
there is an important difference between php based systems and zope.
a php site is made up from a bunch of code snippets embedded in html 
that are fed into a php interpreter.
where these snippets come from is unknown to the php interpreter. one of 
the reasons (I assume) that such systems tend to be riddled with 
security problems

zope is an application server that sits between the internet and the 
(physical) server on which it runs.
it so divides its univers in an unsave and a save part. everything that 
comes from the internet, that includes operations performed TTW (trough 
the web), is unsave and must be authenticated against zopes strict 
permission system.
everything that comes from the server side (eg. from files loaded from 
the server) is considered save and is not security screened (or at least 
not as tightly).

zopes application server offers you two ways to create dtml objects. TTW 
and from a file. one tightly screens one less so.
now what you propose is a third way. get the dtml objects from a database.
this could for sure be done
but..
you have to write a kind of interpreter that creates an dtml object, 
sets up its context, executes it and manipulates its own environment in 
a meaningful way.
next to that this interpreter has to set up its own security context to 
avoid to punch holes into zopes defenses.

you can imagine, this is no easy chore.

and it would probably be foolish if one tried to implement it.
dtml is just not the way to go. it is a dead end (its developer decided 
so). it is replaced by tal and zope 3 (now bluebream) components that 
are far more powerfull and flexible.
and, alas, not THAT easy to grasp

robert





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


Re: [Zope] Storing DTML in SQL

2010-08-18 Thread robert rottermann
I think storing dtml in a db is wrong by design.
I do lots of dynamic websites that are generated from external data.
i had no need for a single line of dtml yet ...

robert

Am 18.08.2010 18:38, schrieb Andrew Milton:
> +---[ Garry Saddington ]--
> | Andrew Milton wrote:
> |>  +---[ Garry Saddington ]--
> |>  | Garry Saddington wrote:
> |>  |>  Justin Dunsworth wrote:
> |>  |>>  I am currently working on a project where I am storing HTML within a
> |>  |>>  MySQL database to display dynamic pages and content in sequences. I
> |>  |>>  would like to be able to store DTML within the tables as well and be
> |>  |>>  able to call them within the page to display that content. I tried
> |>  |>>  mixing the DTML in with the HTML and it shows the HTML correctly but 
> no
> |>  |>>  DTML.
> |>  |>>
> |>  |>>  Is it possible to even do this? Are there other suggestions on how 
> to go
> |>  |>>  about this?
> |>  |>
> |>  |>  The closest I have found is on Zopelabs
> |>  |>  (http://www.zopelabs.com/cookbook/1078612026)
> |>  |
> |>  | Sorry wrong recipe try this:
> |>  |
> |>  | http://www.zopelabs.com/cookbook/993850737/1011691351
> |>
> |>  Do I really have to explain why that particular recipe is a bad idea? d8)
> |>
> | Just trying to be helpful. I did say that it was the only thing I can
> | find and I did not recommend it.
> | If you would care to share the problems of the recipe on the list then I
> | am sure all those reading who are new to Zope would benefit;)
>
> Since python scripts are web callable and something has to be passed
> in... The phrase "execute arbitrary code" is nearly always quickly
> followed by the phrase "remote exploit" and lots of sad faces (and
> then some finger pointing d8)
>
>

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


Re: [Zope] string formatting

2010-08-15 Thread robert rottermann
Am 14.08.2010 22:23, schrieb Jaroslav Lukesh:
> DTML is your friend, not evil.
>
> JL.
>
>
when I was a kid I used to spend my holidays with my grandfather. he was 
an old farmer and used to work with horse and carriage.
it was great and I loved the horses..



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


Re: [Zope] long running methods

2010-05-20 Thread robert rottermann
Am 20.05.2010 21:01, schrieb Maik Derstappen, Derstappen IT:
> Am 20.05.2010 20:04, schrieb robert rottermann:
>> Am 20.05.2010 19:34, schrieb Maik Derstappen, Derstappen IT:
>>
>>> Am 20.05.2010 16:05, schrieb Jürgen Herrmann:
>>>  
>>>> On Thu, 20 May 2010 15:59:58 +0200, Patrick Gerken
>>>>wrote:
>>>>
>>>>
>>>>> On Thu, May 20, 2010 at 14:18, Jürgen Herrmann
>>>>> wrote:
>>>>>
>>>>>
>>>>>  
>>>>>> hi there!
>>>>>>
>>>>>> as our zope2 zodb grows we experience more and more conflicts
>>>>>> with long running transactions. so i'm going to rewrite these
>>>>>> methods to commit transactions in batches - here my attempt
>>>>>> to tackle this problem. the idea is to get a list of objects
>>>>>> to be modified in this transaction, break it down to batches
>>>>>> and commit after each batch was processed. to avoid zope's
>>>>>> retry-on-conflict machinery and still have a chance to retry
>>>>>> per batch transaction commits, the iteration over one batch
>>>>>> is guarded by a try:except ConflictError: and a retry logic.
>>>>>>
>>>>>>
>>>>>>
>>>>> Zope already has its own retry mechanism, maybe you might want to
>>>>> call your long running method multiple times, each time working on the
>>>>> next batch.
>>>>>
>>>>>
>>>>>  
>>>> in fact zope's retry machinery is kicking in too often which is a
>>>> bad thing if the retried transaction runs for say 30min or so.
>>>>
>>>> having to gather the list of objects outside of zope, doing the
>>>> batching there and calling into zope multiple times - i wanted
>>>> to avoid that.
>>>>
>>>> i'd like to have all the logic contained in one zope method
>>>> for the sake of simplicity on the caller's side (most of these
>>>> are kicked off by cron jobs).
>>>>
>>>> jürgen
>>>>
>>>>
>>> take a look at http://pypi.python.org/pypi/affinitic.zamqp maybe it is a
>>> solution for you.
>>> You can deligate your jobs out of zope and get it back after some time.
>>> zamqp then fire an event and you subscribe this event to handle thie
>>> results.
>>>
>>> with kind regards
>>> Maik Derstappen
>>>
>>>  
>> maik,
>> this looks interesting.
>> just out of curiosity: how would one alert the user that a long running job 
>> (say
>> after some 10 minutes) has finished.
>> does the client have to poll?
>> or is there some "magic" push functionality?
>>
>> robert
>>
> hi robert,
> 
> zamqp has an process that continuously receive new message from his 
> message queue and call a callback method which fire the event, that you 
> can subscribe.
> 
> see zamqp and carrot docs for more info ;)
> 
> regards maik
> 
thanks maik,
this I expected.
however (I assume) these are all "things" that happen on the server.
how do I push the "all done" event to the client?  the user will probably have
navigated to some different place.

robert

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


Re: [Zope] long running methods

2010-05-20 Thread robert rottermann
Am 20.05.2010 19:34, schrieb Maik Derstappen, Derstappen IT:
> Am 20.05.2010 16:05, schrieb Jürgen Herrmann:
>> On Thu, 20 May 2010 15:59:58 +0200, Patrick Gerken
>>   wrote:
>>
>>> On Thu, May 20, 2010 at 14:18, Jürgen Herrmann
>>> wrote:
>>>
>>>
>>>> hi there!
>>>>
>>>> as our zope2 zodb grows we experience more and more conflicts
>>>> with long running transactions. so i'm going to rewrite these
>>>> methods to commit transactions in batches - here my attempt
>>>> to tackle this problem. the idea is to get a list of objects
>>>> to be modified in this transaction, break it down to batches
>>>> and commit after each batch was processed. to avoid zope's
>>>> retry-on-conflict machinery and still have a chance to retry
>>>> per batch transaction commits, the iteration over one batch
>>>> is guarded by a try:except ConflictError: and a retry logic.
>>>>
>>>>
>>> Zope already has its own retry mechanism, maybe you might want to
>>> call your long running method multiple times, each time working on the
>>> next batch.
>>>
>>>
>> in fact zope's retry machinery is kicking in too often which is a
>> bad thing if the retried transaction runs for say 30min or so.
>>
>> having to gather the list of objects outside of zope, doing the
>> batching there and calling into zope multiple times - i wanted
>> to avoid that.
>>
>> i'd like to have all the logic contained in one zope method
>> for the sake of simplicity on the caller's side (most of these
>> are kicked off by cron jobs).
>>
>> jürgen
>>
> take a look at http://pypi.python.org/pypi/affinitic.zamqp maybe it is a 
> solution for you.
> You can deligate your jobs out of zope and get it back after some time.
> zamqp then fire an event and you subscribe this event to handle thie 
> results.
> 
> with kind regards
> Maik Derstappen
> 
maik,
this looks interesting.
just out of curiosity: how would one alert the user that a long running job (say
after some 10 minutes) has finished.
does the client have to poll?
or is there some "magic" push functionality?

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


Re: [Zope] ZopeProfiler uninstall

2009-12-01 Thread robert rottermann
Gaute Amundsen schrieb:
> We have ZopeProfiler 1.72 installed on a site (Zope 2.7.5-1.fc3) that
> don't need it anymore.
> I've removed the folder and deleted the product, but I cant' find a way
> to remove it form the controlpanel.
> I notice it's been asked once before, but I cant find any replies.
>
> Any hints?
>
> Regards
>
> Gaute Amundsen
>
>
>
>
> ___
> Zope maillist  -  Zope@zope.org
> https://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  https://mail.zope.org/mailman/listinfo/zope-announce
>  https://mail.zope.org/mailman/listinfo/zope-dev )
>
>
>   
go to the control panel (portal_controlpannel) in the zmi and delete it
robert
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Zope3 on Ubuntu 64

2009-10-18 Thread robert rottermann
Brian Myers schrieb:
> I've installed Zope3 on a 64 bit Ubuntu platform and all seems well.
> 
> I've run mkzopeinstance and the instance directory is there and looks  
> ok.
> 
> However, when I try to start the instance, it says [fail] for the  
> zserver instance and there are no entries in the z3.log file. The  
> default instance chosen was 9673, not 8080. I wonder if that's saying  
> it's not finding an available port. But I've port scanned the machine  
> and both 9673 and 8080 are open.
> 
> Any ideas what to try next? How do I enable more logging output?
> 
> Thanx in advance,
> 
> Brian
> ___
> Zope maillist  -  Zope@zope.org
> https://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  https://mail.zope.org/mailman/listinfo/zope-announce
>  https://mail.zope.org/mailman/listinfo/zope-dev )
> 
> 
I assume that you use a zope installer that has come with ubuntu.

if this is the case, I advise that you install zope anew from a buildout.
this is very easy and gives you much more control about where things are
installed and what version of the diverse packages to use.

I have not used buildout for "naked" zope myself but always in together with
plone (however there should be no real difference).
you will find instructions how to install zope/plone from scratch on 
www.plone.org

the steps are:
- (voluntary but recommend) install your "own" python (as root)
- install easy_install for "your" python (as root)
- install ZopeSkel with easy_install -U ZopeSkel (as root)
- create a buildout anywhere (as a standard user) using paster
  paster --help will explain what to do


robert

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


Re: [Zope] [Zope-Annce] ZClasses resurrected

2009-10-04 Thread robert rottermann
this is great,
I never used ZClasses. But I really cherish that somebody did speak up and keeps
on giving suport to parts of the zope ecosystem the rest of the community
stopped to maintain.
robert
> Dieter Maurer wrote:
>> The Zope developers have ripped out the ZClasses functionality from
>> the Zope core in version 2.12.
>>
>> As promised, I have collected the former code in a new package
>> ("dm.zopepatches.zclasses" on PyPI). When imported, this package
>> uses monkey patching to restore the ZClasses functionality.
>> New tests verify the functionality as formerly described in the
>> Zope book (2.7 edition).
>>
>> To make "ZClasses" available again,
>> the ZODB root database requires "dm.zopepatches.zclasses.ClassFactory"
>> as "class-factory" option in the Zope configuration file.
>> When this option is processed, the package is imported
>> and the monkey patching takes place.
>>
>>
>> The current version does not yet restore the "distribution" functionality
>> (of Zope products). Let me know when you need this functionality.
>>
>>   
> ___
> Zope maillist  -  Zope@zope.org
> https://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  https://mail.zope.org/mailman/listinfo/zope-announce
>  https://mail.zope.org/mailman/listinfo/zope-dev )
> 
> 

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


Re: [Zope] how get a relative root from

2009-08-20 Thread robert rottermann
if you look in the request, there is
PATH_INFO
from which you can deduct the path you are using.

robert
Miguel Beltran R. schrieb:
> Hi list
> 
> how can do a script what return the relative parent from it self?
> 
> I use virtual_hosting and because a configuration I need access to my
> site like http://mysite or http://192.168.1.1/mysite.
> The problem is I have a _menu_ with absolute path, working fine using
> http://mysite but not the other way
> 
> 
> My actual menu is like this:
> 
>   
> Proyecto
> 
>Alta
>Busqueda
> 
>   
> 
> 
> and need when is loaded from http://192.168.1.1/mysite
> 
>   
> Proyecto
> 
>Alta
>Busqueda
> 
>   
> 
> 
> can someone say me how do it? thanks
> -- 
> 
> Lo bueno de vivir un dia mas
> es saber que nos queda un dia menos de vida
> 
> 
> 
> 
> ___
> 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] problem with commits in SQLAlchemyDA

2009-08-17 Thread robert rottermann
Maric Michaud schrieb:
> robert rottermann a écrit :
>  > I do not see any reference to mark_changed
>  > you have to call it before any transaction.commit() to tell the zope 
> transaction
>  > machinery that it has to commit you changes also.
>  > robert
>  >
> 
> In fact, what I understood is that zope.sqlalchemy, by default, bypasses 
> the commit if status is not manually set as 'changed' (see the docstring 
> I quoted in my previous mail). The alternative is to build the 
> SessionExtension with initial_state == STATUS_INVALIDATED.
> 
> My point is that it should be the default for a DA, as it is intended to 
> be used mainly by zsql methods which doesn't do nothing to the 
> transaction state.
> 
> Maybe I wasn't clear but the patch works well with my existing zsql code.
> 
it is a longtime that i worked with zsql methods.
however I think the difference is, that zsql handles transactions itself. it
wraps every zqls method in a start/end transaction. pair.

this is similarly done by zope.sqlalchemy. but it will only commit, when you
tell it that the session is dirty by calling mark_changed

import transaction
from zope.sqlalchemy import mark_changed.
here is how I use it
def addKtyp(self, form, commit=1):
"""
create a new ktyp
return id of that ktyp
"""
session = self.getSession()
...

if values:
...
if not ktyp:
...
session.add(ktyp)
# only mark the session, do not  yet commit
self.mark_changed()
if commit:
transaction.commit()
    # we only know the id after a commit !!!
ktyp_id = ktyp.ktypid
return ktyp_id

robert
___
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] problem with commits in SQLAlchemyDA

2009-08-17 Thread robert rottermann
I do not see any reference to mark_changed
you have to call it before any transaction.commit() to tell the zope transaction
machinery that it has to commit you changes also.
robert

Maric Michaud schrieb:
> Hi all,
> 
> I wanted to use SQALchemyDA with a standalone Zope 2.11 (we only depends 
> on CMFCore).
> 
> i tried to get it up using easy_install, which is pretty 
> straightforward, once removed the incompatible zope.component package 
> needed in the dependencies.
> 
> It ends up with the following installed packages (skipping zope 3 
> components) :
> zope.sqlalchemy-0.4-py2.4.egg
> z3c.sqlalchemy-1.3.10.1-py2.4.egg
> SQLAlchemy-0.5.5-py2.4.egg
> Products.SQLAlchemyDA-0.4.1-py2.4.egg
> 
> At first glance, this works well, but the DA actually can't manage to 
> commit any sql requests (I try only for insert in Mysql and postgres but 
> I'm sure it's always true).
> 
> This is quite an unexpectable behavior for a DA.
> 
> I think the problem is related to this thread I found on tg-trunk 
> newsgroup :
> 
> http://www.mail-archive.com/turbogears-tr...@googlegroups.com/msg07302.html
> 
> There is a misleading comment in the docstring of 
> zope.sqlalchemy.datamanager.join_transaction speaking of a 
> DirtyAfterFlush SessionExtension, which I never seen except in plone code.
> 
> In the last I finally manage to make it work by monkey patching 
> SQLAlchemyDA itself this way :
> 
> 
> try :
>  from Products.SQLAlchemyDA import da
>  from z3c.sqlalchemy import getSAWrapper, createSAWrapper
>  if '0.4.1' in da.__file__ and not hasattr(da.SAWrapper,
>'_patched__wrapper_property') :
>  da.SAWrapper._patched__wrapper_property = da.SAWrapper._wrapper
> 
>  def _always_invalidated_wrapper(self):
>  """The property '_wrapper' patched by CFENet to correct what
>  seems to be a bug in SQLAlchemyDA which prevents any
>  commit."""
>  from zope.sqlalchemy.datamanager import STATUS_INVALIDATED
>  if self.dsn:
>  try:
>  return getSAWrapper(self.util_id)
>  except ValueError:
>  return createSAWrapper(
>self.dsn, forZope=True,
>transactional=self.transactional,
>engine_options={'convert_unicode' :
>  self.convert_unicode,
>'encoding' : self.encoding},
>extension_options={'initial_state': # the whole
> # point is here
>  STATUS_INVALIDATED},
>name=self.util_id)
>  return None
> 
>  da.SAWrapper._wrapper = property(_always_invalidated_wrapper)
> 
> except ImportError :
>  pass
> 
> 
> Anyone has any insights about this problem, any comments on my solution, 
> did it have been reported and corrected, or am I simply missing something ?
> 
> 

___
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] Getting Auto Increment value

2009-06-11 Thread robert rottermann
to my knowledge SELECT LAST_INSERT_ID();
is per connection.
so if you do the call in the same request in which you did the the creation of
the record, you should be fine
robert
Merav Ben-David schrieb:
> 
> 
>  
> 
> I am working with zope & mysql.
> 
> I have a table with SERIAL column type, I create "z-sql method" for
> insert operation, how can I get the value for the auto increment column?
> 
> I know that in mysql I can call last_insert_id(),  how do I call it,
> should I create another "z sql method" and if I do,  how can I be sure
> the the value return is for my insert command and not for another. Is
> there a way to call 2 query from the same "z sql method"?
> 
>  
> 
> I am really lost on this, any help will be wellcom.
> 
> Thank in advanced.
> 
> 
> 
> 
> ___
> 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] problem accessing object as anonymous

2009-04-22 Thread robert rottermann

robert rottermann schrieb:
> Hi there,
> I try to find out, why  in an intranet accessing an object from a link sendt 
> by
> email is not possible.
> situation:
> a user from a plone intranet sends a link to a dokument within the intranet 
> to a
> colleague.
> if that colleague clicks on the link while *not logged* into the intranet she 
> is
> presented with the *browser* login box repeatedly. entering the credential 
> does
> not help.
> the error log shows that access to the document is forbidden for the document
> for the user Anonymous
> 
> while debugging I found out, that the __roles__ property of a given document 
> is
> a tuple of the form
> ('GroupMember', 'Guest', 'Manager', 'FolderManager', 'Owner')
> 
> if I copy the same document to a vanilla plone site its __roles__ property is
> ['Anonymous', 'Manager', 'Reviewer', 'Manager', 'Anonymous']
> 

I found out more:
this dropping of 'Anonymous' and converting to a tuple only happens when I use
our own workflow.
if I use the standard plone workflow so I wonder, what can provoke this?

robert

> 
> I have the impression, that when 'Anonymous' is part of __roles__, access to 
> the
> object is possible. without it, access fails.
> 
> now my questions:
> is the assumption, that the failed acces is caused by the missing 'Anonymous'
> role in __roles__ correct?
> 
> if yes: what controls the setting of __roles__
> 
> if not: what could be the reason of the fact, that users are not presented the
> cookieCrumbler-base plone login is not presented?
> 
> thanks very much for your help
> robert
___
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] problem accessing object as anonymous

2009-04-22 Thread robert rottermann
oh, I am using plone 2.5x here with Zope 2.9.8-final, python 2.4.6, linux2
robert
robert rottermann schrieb:
> Hi there,
> I try to find out, why  in an intranet accessing an object from a link sendt 
> by
> email is not possible.
> situation:
> a user from a plone intranet sends a link to a dokument within the intranet 
> to a
> colleague.
> if that colleague clicks on the link while *not logged* into the intranet she 
> is
> presented with the *browser* login box repeatedly. entering the credential 
> does
> not help.
> the error log shows that access to the document is forbidden for the document
> for the user Anonymous
> 
> while debugging I found out, that the __roles__ property of a given document 
> is
> a tuple of the form
> ('GroupMember', 'Guest', 'Manager', 'FolderManager', 'Owner')
> 
> if I copy the same document to a vanilla plone site its __roles__ property is
> ['Anonymous', 'Manager', 'Reviewer', 'Manager', 'Anonymous']
> 
> 
> I have the impression, that when 'Anonymous' is part of __roles__, access to 
> the
> object is possible. without it, access fails.
> 
> now my questions:
> is the assumption, that the failed acces is caused by the missing 'Anonymous'
> role in __roles__ correct?
> 
> if yes: what controls the setting of __roles__
> 
> if not: what could be the reason of the fact, that users are not presented the
> cookieCrumbler-base plone login is not presented?
> 
> thanks very much for your help
> robert
> 
> 
> 
> ___
> 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] problem accessing object as anonymous

2009-04-22 Thread robert rottermann
Hi there,
I try to find out, why  in an intranet accessing an object from a link sendt by
email is not possible.
situation:
a user from a plone intranet sends a link to a dokument within the intranet to a
colleague.
if that colleague clicks on the link while *not logged* into the intranet she is
presented with the *browser* login box repeatedly. entering the credential does
not help.
the error log shows that access to the document is forbidden for the document
for the user Anonymous

while debugging I found out, that the __roles__ property of a given document is
a tuple of the form
('GroupMember', 'Guest', 'Manager', 'FolderManager', 'Owner')

if I copy the same document to a vanilla plone site its __roles__ property is
['Anonymous', 'Manager', 'Reviewer', 'Manager', 'Anonymous']


I have the impression, that when 'Anonymous' is part of __roles__, access to the
object is possible. without it, access fails.

now my questions:
is the assumption, that the failed acces is caused by the missing 'Anonymous'
role in __roles__ correct?

if yes: what controls the setting of __roles__

if not: what could be the reason of the fact, that users are not presented the
cookieCrumbler-base plone login is not presented?

thanks very much for your help
robert



___
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-dev] Zope 4.0, maybe not such a bad idea...

2009-04-13 Thread robert rottermann
Hi there,
this is an email I wanted to write for several times in the past.

I find it very sad, that grown up people that are extremely knowledgeable and
the source of lots of incredibly helpful advice *nobody* else seems to be able
or willing to give, contributers of a wealth of tools the whole zope community
would be worse off without, do not have the the *maturity* to withheld their
personal animosity.

if I would be their papa, I would threaten to smack their buts!

I would hate not to hear any of the well founded, albeit controversial opinions
some of us feel committed to share at times. Its a funny democracy that only
accepts divers forms of yes. *And doomed to fail*.

however I loath the stupid bickering that springs up as soon as any of a couple
of contributers deign not to be of the same opinion.


Grow up!

robert

___
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] Mod_Rewrite port 8080

2009-04-06 Thread robert rottermann
Bobby schrieb:
> Hi,
> 
> I want to use mod_rewrite on Apache to redirect http://internal:80/internal 
> to http://internal:8080/internal so that when the user request 
> http://internal:80/internal, the Zope folder foo will be served up. I still 
> want http://internal:80/ to stay intact so that the contents from port 80 
> will still be served; just the http://internal:80/internal to point to the 
> Zope folder http://internal:8080/internal. Hope that makes sense. Could 
> someone help me out with the syntax?  Tried the syntax below but not getting 
> desired results. Thanks!
> 
> 
> ServerName internal
> RewriteEngine On
> RewriteRule ^/(.*) 
> http://internal:8080/VirtualHostBase/http/internal:80/internal/VirtualHostRoot/$1
>  [L,P]
> 
> 
> 
> 
> 
> 
>   
> ___
> 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 )
> 
> 
go to plone.org
there are step by step examples.
you find them under dokumentation
robert
___
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] znolk wizard

2009-04-04 Thread robert rottermann
Chris Withers schrieb:
> Carsten Senger wrote:
>> Times are fast moving. Interesting to see such interests in something 
>> ancient to start an excavation ;-)
>>
>> Znolk 0.1.9 is hidden on zope.org.
>>
>> http://www.zope.org/Members/zwork/Znolk_SQL_Wizard/default
>>
>> I think 0.2 was developed at bluedynamics and never released.
>>
>> http://svn.bluedynamics.net/svn/public/ZnolkSQLWizard/
> 
> Maybe whoever wants to use it could pick it up and do a public, 
> prominent release of the latest fixed version somewhere?
> 
> Chris
> 
I thought this could be a nice idea and had a look at the code.
Might be that it would not be hard. However this code is so crufty that I really
would not want to touch it.
Although not ttw and with the need of some coding, you can achieve a similar
result with buildout and collective.mercury.
I used this combination to create the needed forms for a postgres db with some
140 tables.

robert
___
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] znolk wizard

2009-04-02 Thread robert rottermann
take collective.mercury this generates intterfaces from every table.
with such an interface yaou need only a couple of lines to build an edit form
for every table.
somethings like:

class DeclarationKLView(formbase.PageForm):
form_fields = form.Fields(ItblDeclaration_klTable)
ignoreContext = True # don't use context to get widget data

#def __init__(self, *args, **kw):
#ItemAddForm.__init__(self, *args, **kw)

@form.action(_(u"Send"))
def action_send(self, action, data):
"""Send the email to the site administrator and redirect to the
front page, showing a status message to say the message was received.
"""
    self.ToWhatIsNeededToBeDone(..)

robert
ga...@schoolteachers.co.uk schrieb:
> Quoting Chris Withers :
> 
>> ga...@schoolteachers.co.uk wrote:
>>> Does anybody have a recent-ish copy of Znolk wizard product or know where I
>>> could get hold of a copy. The original source no longer has it and 
>>> the one on
>>> the zope.org site is very old. In particular I would like it to 
>>> function with
>>> SQLite.
>> Doesn't think generate SQL methods or something similarly old and crufty?
> 
> Yes it is old, but it is the only reliable thing I've found to rapidly 
> generate
> database edit forms and csv up/download methods.
> 
>> I seem to remember this thing spitting out dtml...
> 
> It generates dtml and ZSQLmethods reliably.
> 
>> Any reason you couldn't do what you want it to do as a seperate wsgi app?
> 
> Yes, it is not used to generate finished apps, only prototypes and initial
> templates.
> Like my Ducati it's old, but like my Ducati it still works, and I'm not 
> going to
> throw the Ducati away just because it's old.
> 
> 
> 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 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 add existing folder in Zope

2009-03-28 Thread robert rottermann
thedag...@gmail.com schrieb:
> make that: LocalFS hasn't been updated since 2006.
it still works fine,
there is only a line you have to change in its code where it pulls in security
from cmf to some other cmf module. when starting up cmf tells you what is wrong.
so its really easy to fix.
robert

> 
> There was a time when I would have agreed with you Jens, but the
> relentless changes to Zope has worn me down. Now I use what Plone uses
> and I only change zope versions when plone changes.
> 
> 
> 
> On Mar 27, 2009 5:16pm, thedag...@gmail.com wrote:
>> > Telling someone to install all of Plone just to make filesystem
>> > content available seems insane, sorry. There are several products out
>> > there which can do the job, like LocalFS.
>>
>> LocalFS has been updated since 2006. There is nothing in the zope
> world that is as well maintained as plone. Sorry.
>>
>>
>> >
>> > iEYEARECAAYFAknNE78ACgkQRAx5nvEhZLLSZACgnouX6fbkoZjY1jI5KuER4iWt
>> >
>> > p40An1l92ewh+I0Gka3ak55qDlhWavQR
>> >
>> > =mqeJ
>> >
>> > -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 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] sorting ids in python

2008-12-11 Thread robert rottermann
Garry Saddington schrieb:
> On Tuesday 09 December 2008 03:15, Andreas Jung wrote:
>> On 08.12.2008 21:11 Uhr, robert rottermann wrote:
>>> Garry Saddington schrieb:
>>>> Can anyone help me sort the following by id in a python script?
>>>>
>>>> for object in context.objectValues(['Folder', 'DTML
>>>> Document','ZipFolder','File','Image']):
>>> objs=context.objectValues(['Folder',
>>> 'DTMLDocument','ZipFolder','File','Image']) objs.sort()
>>> for o in objs:
>>>   ..
>> huh? Afaik there is no sort order defined on a per-object basis.
>>
> This is my final working solution:
> 
> ids = context.objectIds(['Folder', 'DTMLDocument','ZipFolder','File','Image'])
> ids.sort()
> for object in ids:
> object=context.restrictedTraverse(object)
> path=object.absolute_url()
> ...
I think you can have it a little bit easier:
use context.objectItems instead of objectIds
context.objectItems returns (id, object) tuples.

so your solution wold be:
objs = context.objectItems(['Folder', 
'DTMLDocument','ZipFolder','File','Image'])
objs.sort()
for id, object in objs:
 path=object.absolute_url()
robert
___
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] sorting ids in python

2008-12-08 Thread robert rottermann
Andreas Jung schrieb:
> On 08.12.2008 21:11 Uhr, robert rottermann wrote:
>> Garry Saddington schrieb:
>>> Can anyone help me sort the following by id in a python script?
>>>
>>> for object in context.objectValues(['Folder', 'DTML
>>> Document','ZipFolder','File','Image']):
>>
>> objs=context.objectValues(['Folder',
>> 'DTMLDocument','ZipFolder','File','Image'])
>> objs.sort()
>> for o in objs:
>>   ..
> 
> huh? Afaik there is no sort order defined on a per-object basis.wh
I *allways* mixup objecItems with objectValues
so its objecItems(..).sort() ..
robert
___
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] sorting ids in python

2008-12-08 Thread robert rottermann
Garry Saddington schrieb:
> Can anyone help me sort the following by id in a python script?
> 
> for object in context.objectValues(['Folder', 'DTML 
> Document','ZipFolder','File','Image']):

objs=context.objectValues(['Folder', 'DTMLDocument','ZipFolder','File','Image'])
objs.sort()
for o in objs:
 ..

robert

> 
> Import of sequence is not authorised in my python scripts, I am presuming 
> (probably wrongly) that sequence is needed for sort.
> 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 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] generic setup&workflow: how to add to binding??

2008-12-08 Thread robert rottermann
thanks Jean-Michel,

Jean-Michel FRANCOIS schrieb:
>  
>   
>
>   
> 
> 
>   
> 
> 
> 
>   
> 
this unfortunately *replaces* the entries in the binding.
I would like to add to the existing ones.

I can do that by running an old fasion install script but would prefere to do it
"rigth".

thanks
robert

___
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] generic setup&workflow: how to add to binding??

2008-12-07 Thread robert rottermann
Hi there,
I created a workflow product.
now I would like this workflow *added* to the bindings of the actual workflow
settings when the product is installed.

so I have something like:
File (Default)
chanched to
File (Default) MyWorklow


I this possible?
If yes how?

thanks
robert
___
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] Multiple zope instances using the same storage

2008-12-06 Thread robert rottermann
Mark Gibson schrieb:
> I have an unusual setup.  I have 4 distinct Zope instances (4 seperate 
> Data.fs').  Each Data.fs is identical - Data is kept in a RDBMS.  I have 
> a product I need to install that stores data in the ZODB.  This data is 
> stored in one folder.
> 
> Now, I *think* I can simply mount this folder in each ZODB and serve the 
> storage through a ZEO server - however I've never done this setup, so I 
> want to make sure this makes sense and I'm not overlooking potential 
> problems.
> 
> This is a legacy setup that I'm not responsible for, so I'm trying to 
> keep my footprint in this setup as small as possible.  Using Zope 2.7.9.
> 
> Thanks,
> Mark
this should be possible
there is even a tutorial someplace.
google for mountpoint
or catalog in an extra data.fs
or something such
robert
___
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 manage error with zsql

2008-12-06 Thread robert rottermann
hi,

I think you should  write in a python script:

try:
  result = context.insert_data.zsql
  msg = 'data inserted'
except ZeroDivisionError:
  msg = 'ZeroDivisionError occured'

return msg

and in your tal you write:

> 
>tal:content="context/MyPythonscript">
>
> 
>

allways try to put logic in a python script. it is *far* easier than writing
complicated tal

robert

Miguel Beltran R. schrieb:
> I tried to insert data using an zsql, insert fine How manage error with
> zsql.
> Before
> 
>
>Data inserted!!!
> 
>Error type:
>Error type:
> 
> 
> 
> 
> Now (All files are ZPT)
> 
> [index_html]
> ...
> 
> 
> ...
> 
> 
> 
> 
> [proyecto_alta.html]
> 
>tal:condition="context/insert_data.zsql"
>tal:content="string: Data inserted!!!">
> 
> 
> 
> 
> [error_insertar]
> error=_['error']
> if error.type==ZeroDivisionError:
> return "Can't divide by zero."
> else:
> return """An error ocurred.
>   Error type: %s
>   Error value: %s""" % (error.type,
>error.value)
> 
> 
> But say
> 
> Tipo  Unauthorized
> Valor You are not allowed to access 'type' in this context
> TraceBack 
> 
> Traceback (innermost last):
> 
> * Module ZPublisher.Publish, line 119, in publish
> * Module ZPublisher.mapply, line 88, in mapply
> * Module ZPublisher.Publish, line 42, in call_object
> * Module Shared.DC.Scripts.Bindings, line 313, in __call__
> * Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
> * Module Products.PageTemplates.ZopePageTemplate, line 330, in _exec
> * Module Products.PageTemplates.ZopePageTemplate, line 427, in pt_render
> * Module Products.PageTemplates.PageTemplate, line 96, in pt_render
> * Module zope.pagetemplate.pagetemplate, line 115, in pt_render
> * Module zope.tal.talinterpreter, line 271, in __call__
> * Module zope.tal.talinterpreter, line 346, in interpret
> * Module zope.tal.talinterpreter, line 981, in do_onError_tal
> * Module zope.tal.talinterpreter, line 346, in interpret
> * Module zope.tal.talinterpreter, line 745, in do_insertStructure_tal
> * Module Products.PageTemplates.Expressions, line 199, in
>   evaluateStructure
> * Module zope.tales.tales, line 696, in evaluate
>   *URL: /ceed/finanza/proyecto/proyecto_alta.html*
>   *Line 1, Column 0*
>   *Expression: *
>   *Names:*
> 
>   {'container': ,
>'context': ,
>'default': ,
>'here': ,
> 
>'loop': {},
>'nothing': None,
>'options': {'args': ()},
>'repeat':  0x02382828>,
>'request':  URL=http://sic/finanza/proyecto/proyecto_alta.html>,
> 
>'root': ,
>'template':  /ceed/finanza/proyecto/proyecto_alta.html>,
>'traverse_subpath': [],
>'user': }
> 
> * Module zope.tales.expressions, line 217, in __call__
> * Module Products.PageTemplates.Expressions, line 139, in _eval
> * Module Products.PageTemplates.Expressions, line 91, in render
> * Module Products.PageTemplates.ZRPythonExpr, line 79, in call_with_ns
> * Module Shared.DC.Scripts.Bindings, line 327, in
>   __render_with_namespace__
> * Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
> * Module Products.PythonScripts.PythonScript, line 327, in _exec
> * Module None, line 2, in error_insertar
>   **
>   *Line 2*
> 
> Unauthorized: You are not allowed to access 'type' in this context
> 
> 
> 
> (Example taked from
> http://www.plope.com/Books/2_7Edition/AppendixC.stx#2-28
> <http://www.plope.com/Books/2_7Edition/AppendixC.stx#2-28>)
> 
> 
> -- 
> 
> Lo bueno de vivir un dia mas
> es saber que nos queda un dia menos de vida
> 
> 
> 
> 
> ___
> 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] Zope error getting Plone running on HP UX

2008-09-12 Thread robert rottermann
I have not been near HP UX for more than 10 years..
but why dont you install zope plone from scratch?

this is very easy and done in less than an hour.
you then should have much more controll on what is happening when running 
zope/plone.
start with installing:
- easy_install
- ZopeSkell

and the creat a buildout with paster.
there are good tutorials on plone.org on how to do that.
robert

sjcurt02 schrieb:
> I've used the Plone-3.1.5.1-ex-UnifiedInstaller to install all necessary
> components on an HP-UX B.11.11 U 9000/800/L3000-8x system.  The Zope control
> pannel displays the following:
> 
> Zope Version: (Zope 2.10.6-final, python 2.4.5, hp-ux11)
> Python Version: 2.4.5 (#1, Sep 5 2008, 13:21:39) [GCC 3.3.2]
> System Platform: hp-ux11
> SOFTWARE_HOME: /public/plone/zinstance/parts/zope2/lib/python
> ZOPE_HOME: /public/plone/zinstance/parts/zope2
> INSTANCE_HOME: /public/plone/zinstance/parts/instance
> CLIENT_HOME: /public/plone/zinstance/var/instance
> Network Services: ZServer.HTTPServer.zhttp_server (Port: 9080)
> Process Id: 14823 (5)
> Running For: 4 min 54 sec
> 
> Accessing the Plone site results in a bus error and core dump.  Verbose
> debugging shows:
> 
> 
> # trying
> /public/plone/buildout-cache/eggs/plone.keyring-1.2-py2.4.egg/plone/keyring/random.sl
> # trying
> /public/plone/buildout-cache/eggs/plone.keyring-1.2-py2.4.egg/plone/keyring/randommodule.sl
> # trying
> /public/plone/buildout-cache/eggs/plone.keyring-1.2-py2.4.egg/plone/keyring/random.py
> # trying
> /public/plone/buildout-cache/eggs/plone.keyring-1.2-py2.4.egg/plone/keyring/random.pyc
> # trying
> /public/plone/buildout-cache/eggs/plone.contentrules-1.1.0-py2.4.egg/plone/contentrules/engine/storage.sl
> # trying
> /public/plone/buildout-cache/eggs/plone.contentrules-1.1.0-py2.4.egg/plone/contentrules/engine/storagemodule.sl
> # trying
> /public/plone/buildout-cache/eggs/plone.contentrules-1.1.0-py2.4.egg/plone/contentrules/engine/storage.py
> #
> /public/plone/buildout-cache/eggs/plone.contentrules-1.1.0-py2.4.egg/plone/contentrules/engine/storage.pyc
> matches
> /public/plone/buildout-cache/eggs/plone.contentrules-1.1.0-py2.4.egg/plone/contentrules/engine/storage.py
> import plone.contentrules.engine.storage # precompiled from
> /public/plone/buildout-cache/eggs/plone.contentrules-1.1.0-py2.4.egg/plone/contentrules/engine/storage.pyc
> # trying /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/base64.sl
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/base64module.sl
> # trying /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/base64.py
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/base64.pyc
> sh: 702 Bus error(coredump)
> # clear __builtin__._
> # clear sys.path
> 
> 
> But a small test program that imports all the ZPublisher modules results in
> the following:
> 
> 
> # trying /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/socket.sl
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/socketmodule.sl
> # trying /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/socket.py
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/socket.pyc
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/mimetools.sl
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/mimetoolsmodule.sl
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/mimetools.py
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/mimetools.pyc
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/httplib.sl
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/httplibmodule.sl
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/httplib.py
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/httplib.pyc
> # trying /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/base64.sl
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/base64module.sl
> # trying /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/base64.py
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/base64.pyc
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/urlparse.sl
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/urlparsemodule.sl
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/urlparse.py
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/urlparse.pyc
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/HTTPRangeSupport.sl
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/HTTPRangeSupp

Re: [Zope] zexp import fails from linux to windows due to image file paths

2008-07-16 Thread robert rottermann

Richard Ettema schrieb:

Hi,

I have an old zope based site that was hosted on a linux machine that 
was exported to a zexp. i am trying to import it onto a windows machine 
to fix up and upgrade the site. the windows machine is setup wth the 
identical products etc. The problem is the image file paths for linux 
within the zexp do not match the new windows setup. I dont need the 
images imported, i'm wanting to access the main site content and users. 
I dont have access to a linux machine anymore, so i'm stuck with windows 
for development. Is there a way of getting the import procedure to 
ignore the errors and continue the import (i.e. any hints on how to 
modify the zope code)? Or is there a way to edit the zexp to do a search 
& remove/replace of the file path names so the import completes with no 
file path details?


Any ideas greatly appreciated as I have searched around with no luck on
answering this myself.

i do not think that it is the zexp import machinery that fails but the product 
that handles these external images. so you have to fix that product that it does 
not chocke when it can not read a file.


robert
___
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: how to unindex an non existing (deleted)object

2008-06-24 Thread robert rottermann

Daniel Nouri schrieb:

robert rottermann writes:

  

Sometimes a catalog query returns brains that point to non existing objects.

how can I remove such brains from the index programmatically  without
using the portal_catalag/advanced/update tab?



  brain.aq_parent._catalog.uncatalogObject(brain.getPath())


Daniel

  

brilliant, exactly what I needed
thanks
robert
___
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 unindex an non existing (deleted)object

2008-06-24 Thread robert rottermann

Martijn Jacobs schrieb:

robert rottermann wrote:

Hi there,

Sometimes a catalog query returns brains that point to non existing 
objects.


how can I remove such brains from the index programmatically  without 
using the portal_catalag/advanced/update tab?


thanks
robert
If you want to call the update catalog functionality yourself : A 
Zcatalog has a method refreshCatalog which you can use (take a look at 
ZCatalog.py).


If you want to remove the brain you could call the 
_catalog.uncatalogObject method.However, when you have brains which 
point to non-existent objects you should reindex the catalog, as 
something went wrong while (un)indexing these objects.



Martijn.



thanks very much.
robert
___
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 to unindex an non existing (deleted)object

2008-06-24 Thread robert rottermann

Hi there,

Sometimes a catalog query returns brains that point to non existing objects.

how can I remove such brains from the index programmatically  without using the 
portal_catalag/advanced/update tab?


thanks
robert
___
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] not possible to download anything

2008-06-13 Thread robert rottermann

Hi there,

after the dislocation of the zope servers zope.org is reachable again 
from where I am (switzerland)

however it is not possible to download anything.

robert

___
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] statistics and click analysis for a plone site

2008-06-02 Thread robert rottermann

Tom Von Lahndorff schrieb:

Highly recommend Google Analytics:
http://www.google.com/analytics/
I've used it myself to track usage for a zope intranet which is only
accessible on an internal network.

On Mon, Jun 2, 2008 at 6:52 AM, robert rottermann <[EMAIL PROTECTED]> wrote:

thanks, but the customer does not like the idea of having data on a public site.
robert
___
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] statistics and click analysis for a plone site

2008-06-02 Thread robert rottermann

Andreas Jung schrieb:



--On 2. Juni 2008 07:22:06 -0400 Tom Von Lahndorff <[EMAIL PROTECTED]> 
wrote:



Highly recommend Google Analytics:
http://www.google.com/analytics/
I've used it myself to track usage for a zope intranet which is only
accessible on an internal network.


Do you really want to send intranet-related data to Google? :-)

Andreas

this is exactly why google analytics is no option (unfortunately).
robert
___
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] statistics and click analysis for a plone site

2008-06-02 Thread robert rottermann

Hi there,
for a Client using a plone2 intranet (with no access from the outside 
world) I installed awstat to track the usage of the intranet.

now I wonder how meningfull such statisics are.

The intranet usage is roughly as follows:
- user logs into the intranet authenticating against a 
Ldap/MSActiveDirectory

- she stays in the intranet all day, probably never logs out
- collects data as needed

The awstats setup is very basic. I just installed it and adopted the 
config files such that it finds the apache log files.
I did a second setup for the Z2.log (to get at the old data, as we do 
not rotate the Z2.log).


Looking at the awstats statistics I do not find them of overwhelming 
informative.
Now, I now awstats is not a click analysis tool. but maybe somebody has 
done some more analysis into how to provide useful statistics on the 
usage of an intranet.

Any pointers would be welcome.

thanks
robert
___
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] buildout for plone2.5: paster creates bad zcml

2008-05-28 Thread robert rottermann

for the record:
I found a way to fix this by using a newer five versin.
I added:
urls =
   http://codespeak.net/z3/five/release/Five-1.4.4.tgz
in the buildout.cfg.

it would be much nicer, to have the buildout recipes fixed

robert

robert rottermann schrieb:

Hi there,
I try to use paster for a plone 2.5 site.

this is what I have done:

paster create -t plone2.5_buildout plone2
executed bootstrap and buildout
then in src:
paster create -t plone2.5_theme x.y

which I added to the buildout.cfg like so:
[buildout]
...
eggs =
   elementtree
   x.y

develop =
   src/x.y

...
[instance]
...
zcml =
   x.y


when I then start the new instance, I get the following error:
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File 
"/home/zope/plone2/parts/instance/etc/site.zcml", line 11.2-11.55
   ZopeXMLConfigurationError: File 
"/home/zope/plone2/parts/instance/etc/package-includes/001-x.y-configure.zcml", 
line 1.0-1.47
   ZopeXMLConfigurationError: File 
"/home/zope/plone2/src/x.y/x/y/configure.zcml", line 8.2
   ConfigurationError: ('Unknown directive', 
u'http://namespaces.zope.org/five', u'registerPackage')


what can I do to fix this?
thanks
robert
___
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] buildout for plone2.5: paster creates bad zcml

2008-05-28 Thread robert rottermann

Hi there,
I try to use paster for a plone 2.5 site.

this is what I have done:

paster create -t plone2.5_buildout plone2
executed bootstrap and buildout
then in src:
paster create -t plone2.5_theme x.y

which I added to the buildout.cfg like so:
[buildout]
...
eggs =
   elementtree
   x.y

develop =
   src/x.y

...
[instance]
...
zcml =
   x.y


when I then start the new instance, I get the following error:
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File 
"/home/zope/plone2/parts/instance/etc/site.zcml", line 11.2-11.55
   ZopeXMLConfigurationError: File 
"/home/zope/plone2/parts/instance/etc/package-includes/001-x.y-configure.zcml", 
line 1.0-1.47
   ZopeXMLConfigurationError: File 
"/home/zope/plone2/src/x.y/x/y/configure.zcml", line 8.2
   ConfigurationError: ('Unknown directive', 
u'http://namespaces.zope.org/five', u'registerPackage')


what can I do to fix this?
thanks
robert
___
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] Check for currently loged in users

2008-04-29 Thread robert rottermann

vaibhav pol schrieb:


Dear all,
 here i am using zop-2.8.1 and am trying to get the how many users 
currently loged in  zope. Let me know if zope having any  supported 
function or module to do the same .


to my knowledge there is no such tool.
the logged in user is not a state kept by the server, so there is 
nothing the server can tell you.


robert

 
thanks and regards

vaibhav




___
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] zopedown

2008-04-26 Thread robert rottermann

I remeber a similar situation some times ago with a customer.
them one of the apache logs grew to a size of 2gig wich was the maximum 
size apache can handle.

it just stoped to process any request.
deleting the log file was enough to have everything working
robert
Ben schrieb:

A Zope server stopped responding to requests, with page requests just timing 
out, but fortunately (I thought) I had the debugger URL ready.  However, when I 
loaded that I was amazed to see it load instantly, showing the usual 4 threads. 
  I restarted Zope, and now the debugger shows only:

Threads traceback dump at 2008-04-25 23:30:12

End of dump

In Unix, I see the usual two Zope processes.  Their CPU usage is very low.
 17633 ?S  0:184640842280  0.0  0.3 /usr/local/bin/python 
/www/Zope-2.7.3b2-0/lib/python/Zope/Startup/run.py -C /ww
 17632 ?S  0:00 8192 3768  0.0  0.1 /usr/local/bin/python 
/www/Zope-2.7.3b2-0/lib/python/zdaemon/zdrun.py -S /www/Z

The event log has nothing unusual, and ends with "Zope Ready to handle requests"
What can I do?
___
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] zeo configuration HOWTO

2008-04-22 Thread robert rottermann

David Bear schrieb:
I'm trying to find more documentation about all the configuration 
parameters for a zeo.conf


I *believe* on plope.org there was an introduction to it with some more 
parameters explained.


Namely, I have a zope with multiple zodb's and mount points. I am trying 
to learn how to migration a single zope instance with multiple mounts 
into zeo. One thing I don't understand is temporary storage. If I have



# Temporary storage database (for sessions)

  name temporary storage for sessioning

mount-point /temp_folder
container-class Products.TemporaryFolder.TemporaryContainer


in zope.conf -- how do and transfer that into zeo.conf and modify the 
zope.conf to properly understand.

this is where "volatile" thing are created and purged again.
there is never anything to migrate from here


specifically, do I put 'container-class' in zeo.conf ?


there is a howto on this on either zope.org or (more probably) on plone.org



Also, in zope.conf what do 'server', 'storage', 'name', and 'client' map 
to in zeo.conf? There must be a more detail descriptions of how to 
configure zeo somewhere.


--
David Bear
College of Public Programs at ASU
602-464-0424




___
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] Re: [Plone-developers] the grand reunion

2008-04-13 Thread robert rottermann

Rudá Porto Filgueiras schrieb:

On Fri, Apr 11, 2008 at 1:23 PM, Florian Friesdorf <[EMAIL PROTECTED]> wrote:

Hi Robert,


 On Fri, Apr 11, 2008 at 04:04:43PM +0200, robert rottermann wrote:
 > hi yuri,
 >
 > when setting up a zope/zeo task and everything was still a bit of a
 > challenge (at least to me) we tended to have everything in one big
 > instance that served some 20 low traffic sites.
 > since then setting up a site with all the tools it needs has become a
 > trivially easy and quick to execute task. we have converted nearly all
 > these sites to have their own instance.
 >
 > I would not do it differently anymore ..

 Do you have or are there any comparisons for RAM usage of one zope instance
 containing multiple plone instances vs. multiple zope instances containing a
 single plone instance only?


It will be overkill. ;-)
We run all Plone sitess in same instance as possible (plone provider),
only creating one data.fs to each Plone Site and tunning cache objects
to each site needs.



you might be right,
is is an overkill when you start. just creating a new folder and a new 
plone site in it is *so* easy.
however, every site has its own lifecycle and tends to call for extra 
products, adaptations, plone & product versions, you name it. every such 
change affects every site in a "one zope/several plone site" setup.
and even if the change migth be trivial, it can have unwanted side 
effects for an other site.

my experience is: dont do it!

robert
___
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: [Plone-developers] the grand reunion

2008-04-11 Thread robert rottermann

hi yuri,

when setting up a zope/zeo task and everything was still a bit of a 
challenge (at least to me) we tended to have everything in one big 
instance that served some 20 low traffic sites.
since then setting up a site with all the tools it needs has become a 
trivially easy and quick to execute task. we have converted nearly all 
these sites to have their own instance.


I would not do it differently anymore ..

robert

Yuri schrieb:

Hi!

 Actually I've two Plone "working envinronment" and one zope, each in a 
different machine:


 - one, with two zope 2.9 istances (one for developing), running both 
multiple Plone 2.5 instances

 - one, with zope 2.9, running multiple Plone 2.5 instances
 - one, with zope 2.7.9, running zope only applications

 We have bought "big iron" hardware now, where I can do almost 
everything (with a fiber channel network storage, multiple rack servers).


tipically, I use one instance to develop, and one to deploy. This mean 
different zope instances which shares only the base, and having 
different products.


I would like to have an easy way to develop without having to be subject 
to dependencies from other envinroment, minimize the effort to mantain 
it and focus on doing things :)


 Is one big zope installation, with multiple instances, well suited for 
this tasks? Or is better different zope versions? What about the various 
Data.fs, is better to have them separated by application or by zope 
envinroment? I mean all the Plone in a single Data.fs or each one in a 
separated Data.fs?


 So, what is the best approach to migrate the three servers?

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

___
Plone-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/plone-developers




___
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] zip files corrupted with IE when opened, fine when downloaded

2008-03-19 Thread robert rottermann
Chris Withers schrieb:
> robert rottermann wrote:
>> Hi there,
>> when users using IE want to open a zip file from the intranet by using
>> the "open" option from the download dialog they get winzip complaining
>> that the file is corrupted.
>> if they select "save" from the same dialog they can open the zip archive
>> without problem.
> 
> Sounds like you have a .tar.gz being served with an incorrect content
> type such that IE stupidly saves it as a .tar which then gets passed to
> WinZip, which doesn't look at the content of the file and so tries to
> open the .tar.gz as if it was a .tar and so barfs...
> 
> cheers,
> 
> Chris
> 
thanks,
but its a *.zip file. and it is when opening in the window that springs
up at the end of the download.
when it is saved and then opened all is fine

robert
___
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: zip files corrupted with IE when opened, fine when downloaded

2008-03-19 Thread robert rottermann
Maurits van Rees schrieb:
> robert rottermann, on 2008-03-17:
>> Hi there,
>> we have a problem with an intranet that runs using plone 2.5.3
>>
>> when users using IE want to open a zip file from the intranet by using
>> the "open" option from the download dialog they get winzip complaining
>> that the file is corrupted.
>> if they select "save" from the same dialog they can open the zip archive
>> without problem.
>>
>> does anyone know a solution for this or give me an idea where to look
>> for one?
> 
> The INSTALL.txt of CMFPlone says this about WinZip:
> 
> * Unpacking the Plone archive with WinZip will not work: WinZip will truncate
>   filenames without warning you. 7-Zip is a good open source alternative for
>   Windows that you can use instead: http://www.7-zip.org
> 
> That does not look like the same error you are getting, so the other
> answers are probably better, but still using 7-zip might solve this.
> 
> My 2 cents.
> 
thanks maurits
it would be enough to use Firefox ..
but it's an intranet users spread all over europe and company policy is
IE only ..
robert
___
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] zip files corrupted with IE when opened, fine when downloaded

2008-03-17 Thread robert rottermann
thanks Jim
I'll try that

robert

Jim Washington schrieb:
> Jim Washington wrote:
>> robert rottermann wrote:
>>> Hi there,
>>> we have a problem with an intranet that runs using plone 2.5.3
>>>
>>> when users using IE want to open a zip file from the intranet by using
>>> the "open" option from the download dialog they get winzip complaining
>>> that the file is corrupted.
>>> if they select "save" from the same dialog they can open the zip archive
>>> without problem.
>>>
>>> does anyone know a solution for this or give me an idea where to look
>>> for one?
>>>   
>> I had a similar problem with pdf files, and googling indicated that IE
>> might be deleting the cached copy of the document before the opening
>> application can get to it.
>>
>> I have had some success setting cache control to "private".  Something
>> like:
>>
>> request.response.setHeader('cache-control','private')
>>
>> "private,must-revalidate" may also be a good value, depending on your
>> situation.
>>
> I Googled back through and found that the problem usually manifests when
> you have a 'cache-control':'no-cache' header.  The above explanation was
> not quite right.
> 
> Anyway, either removing the "no-cache" header or using one that allows
> the local machine to keep a copy should work, if the problem is in fact
> a 'no-cache' header.
> 
> - Jim Washington
> ___
> 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] zip files corrupted with IE when opened, fine when downloaded

2008-03-17 Thread robert rottermann
Hi there,
we have a problem with an intranet that runs using plone 2.5.3

when users using IE want to open a zip file from the intranet by using
the "open" option from the download dialog they get winzip complaining
that the file is corrupted.
if they select "save" from the same dialog they can open the zip archive
without problem.

does anyone know a solution for this or give me an idea where to look
for one?

thanks
robert

___
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 Zeo Performance

2008-03-14 Thread robert rottermann
FuBuJo schrieb:
> I apologize that my description was so confusing.
> I appreciate the feedback and so would like to clarify.
> 
> The diagram is how the traffic flows.  So we have:
> Step 1 - a Load Balancer that passes traffic to Apache
> 
> Step 2 - Apache which uses mod_proxy to obfuscate the URL and proxies traffic 
> to
> the Zeo Client
is that so?
does not apache talk to a zope server ?

robert

___
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 starts in foreground but not normaly

2008-03-11 Thread robert rottermann
Chris Withers schrieb:
> robert rottermann wrote:
>> [EMAIL PROTECTED]:~> instances/kanneweb3/bin/zopectl status
>> daemon manager running; daemon process not running
>> [EMAIL PROTECTED]:~>
>>
>> I see no entries in the logs, so I have no idea where to look.
> 
> Check the ownership of the log files.
> 
> When this happens to me, it's usually because the user zope is running
> as doesn't have permission to write to the log files or the Data.fs or
> the var directory...
> 
> cheers,
> 
> Chris
> 
thanks
this is not the reason. zope runs as the user that created the whole
instance.

after zope stopped two files are left in the var directory:
Z2.pid, Z2.lock
both containing an int that was probably the pid of the crashed zope.

any more ideas?

robert
___
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 starts in foreground but not normaly

2008-03-11 Thread robert rottermann
Hi there,

after a software upgrade (system and zope/plone) we have a strange problem.
we have an old site that runs under plone 2.1
Zope-2.8.9-final
python 2.3.5

when I start it in the foreground with bin/zopectl fg everything works fine.
if I however start it with bin/zopectl start

bin/zopectl status shows after some seconds

[EMAIL PROTECTED]:~> instances/kanneweb3/bin/zopectl start
daemon process started, pid=26697

[EMAIL PROTECTED]:~> instances/kanneweb3/bin/zopectl status
daemon manager running; daemon process not running
[EMAIL PROTECTED]:~>

I see no entries in the logs, so I have no idea where to look.

for any hints how the caus of this problem, I would be gratefull

robert


This is what the controllpanel shows:
Zope Version

(Zope 2.8.9-final, python 2.3.5, linux2)
Python Version

2.3.5 (#3, Mar 11 2008, 10:14:33) [GCC 4.1.2 20061115 (prerelease) (SUSE
Linux)]
System Platform

linux2
SOFTWARE_HOME

/home/zope/Zope-2.8.9-final/lib/python
ZOPE_HOME

/home/zope/Zope-2.8.9-final
INSTANCE_HOME

/home/zope/instances/kanneweb3
CLIENT_HOME

/home/zope/instances/kanneweb3/var
Network Services

ZServer.HTTPServer.zwebdav_server (Port: 8290)
ZServer.HTTPServer.zhttp_server (Port: 8280)
Process Id

26719 (-1229186160)
Running For

1 min 21 sec
___
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 nice traceback like from old versions?

2008-03-03 Thread Robert (Jamie) Munro

Dieter Maurer wrote:

Jaroslav Lukesh wrote at 2008-2-6 00:08 +0100:

Once more, correction of misformatted text for better readability.
...
  - __traceback_info__: REQUEST
 Module , line 1, in 
NameError: name 'kalendar_titulni_pouze_akce_str' is not defined

Line 313 where is the error looks:


Is somewhere some extra product or patch to show partial code where is 
error?


You are right: DTML is only rarely used nowadays and its support
deteriorates.

I do not know of a product or patch to improve on this
(also I modified our local Zope to at least report which
DTMLObject caused a problem).

You can improve it by adding "__traceback_info__"
or "__traceback_supplement__" definitions at strategic places
in the DMTL implementation.


If anyone has done this, can I have a copy of your patch - I'm debugging
on an old DTML product, and it is impossible to debug without line
numbers of exceptions.

Otherwise I might have to downgrade zope to 2.5 - thanks for that tip
from Jaroslav Lukesh - I had no idea that it used to be better.

Thanks,

Robert (Jamie) Munro

___
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] Managing Zope objects in Subversion

2008-03-03 Thread Robert (Jamie) Munro

Peter Sabaini wrote:

On Sunday 02 March 2008 14:17:31 [EMAIL PROTECTED] wrote:

Dear all

We use Zope for the  user interface part of our software product.
We currently export the whole folder hierarchy into a .zexp file and
maintain this file in Subversion.

I'm looking for a way to manage a folder structure as individual
Zope objects in Subversion.


If read-only access is enough, maybe this is for you:

http://www.infrae.com/download/FileSystemSite


And to initially populate File System site with something you have
developed in the Zope DB, you need FSDump.

http://www.zope.org/Members/tseaver/FSDump

Although compatibility between the 2 is not perfect - not everything you
dump is usable in File System Site unmodified, they do make a good
combination.

Robert (Jamie) Munro

___
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] Happy Valentine's Day from Zwiki HQ

2008-02-15 Thread robert rottermann
Simon Michael schrieb:
> Hello Zopistas.. a happy Valentine's day to all!
> 
as martin said (or hinted) before me, a new wiki solution needs to be
seamlessly integratable into plone.

I like zwiki very much and still use it often. but rarely in new projects.
the userinterface is to different from plone.

thanks for the incredible useful zwiki you provided us with.

if you move towards something plonelike, I would be happy to help.

robert
___
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] Accessing Zope REQUEST data from a Python module

2007-12-06 Thread robert rottermann
hi ken,
very often you can replace context with self.
so instead of context.REQUEST you use self.REQUEST.
robert
Ken Winter schrieb:
> I'm customizing a product.  To do what I'm trying to do, I need to be able
> to access REQUEST data from within a Python module (not a script; a .py file
> containing class and method definitions).
> 
>>From within a script, a line like
> 
>   req = context.REQUEST
> 
> does the job just fine.  But when I put that line into my product module, I
> get a message like:
> 
>   Name "context" not defined
> 
> and I don't see any way to import that into my module.
> 
> At (http://www.plope.com/Books/2_7Edition/AppendixB.stx#0-8), the Zope API
> Reference describes the module "HTTPRequest", which includes the class that
> it calls "HTTPRequest(BaseRequest)", which apparently is the equivalent of
> REQUEST as described above.  I have put this line into my module:
> 
>   from ZPublisher.HTTPRequest import HTTPRequest
> 
> but now I don't know how to reference the request's contents.  I put in this
> line:
> 
>   req = HTTPRequest
> 
> and print "req" to a debug file, and it shows:
> 
>   ZPublisher.HTTPRequest.HTTPRequest
> 
> which I don't understand.  I have tried a half-dozen ways (suggested by the
> Zope API Reference) to get an actual property of the current HTTPRequest,
> but without success.  Examples:
> 
>   req['URL'] -> "TypeError: unsubscriptable object"
>   req.get('URL') -> "TypeError: unbound method get() must be called
> with HTTPRequest instance as first argument (got str instance
> instead)"
>   req.keys() -> "TypeError: unbound method keys() must be called with
> HTTPRequest instance as first argument (got nothing instead)"
> 
> The last two suggest that, while I have successfully imported the
> HTTPRequest *class*, I haven't successfully gotten the current HTTPRequest
> *instance*.  I don't know how to do that.
> 
> So, I need an answer to any one of these questions:
> 
> 1. How can the Zope global name "context" be defined or imported into a
> non-script Python module?
> 
> 2. How can one get the current instance of the class "HTTPRequest" into a
> non-script Python module?
> 
> 3. If I'm looking in the wrong direction, what is the right way to make the
> current REQUEST's data available in a non-script Python module?
> 
> ~ TIA
> ~ Ken 
> 
> 
> ___
> 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 )
> 

begin:vcard
fn:Robert  Rottermann
n: Rottermann;Robert
email;internet:[EMAIL PROTECTED]
tel;work:++41 31 333 10 20
tel;fax:++41 31 333 10 23
tel;home:++41 31 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

___
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: Escaping special characters in ZCTextIndex.QueryParser?

2007-11-27 Thread Robert Casties
Dieter Maurer wrote:
> Please stay on the list! Readded...

I was reading reading zope-dev through Gmane's NNTP-gateway so I think
my answer stayed on that list. (I posted a similar question last week on
zope, did you mean that one?)

> Robert Casties wrote at 2007-11-27 09:47 +0100:
>> ...
>> Is the parser for the search query also pluggable? I will have another
>> look at TextIndexNG.
> 
> You should look at "TextIndexNG3".
> 
> There, you can specify lots of things either globally through ZCML,
> in the index during creation and passed as parameter.
> 
> For the query search parser, you have at least the later two
> options.

Thanks, I will try TextIndexNG soon but I need to set up a development
instance first since I'm a little afraid of installing TextIndexNG on
the production system.


Cheers
Robert

___
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] Escaping parens for ZCTextIndex?

2007-11-20 Thread Robert Casties
Hi List,

I have a full text index, created using a custom splitter, that contains
words with parens inside e.g. "3([EMAIL PROTECTED])" (n.b. it's from cuneiform 
tablets).

Now I want to search for these words in the index but I am unable to get
the parens in the query to get past the QueryParser which flags the
expression as an error.

Is there a way to do either escape the parens or bypass the QueryParser?

Thanks
Robert

___
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] is it possible to bypass ZSQL methods and callstoredprocedures in sqlserver straight from ZPT?

2007-11-07 Thread robert rottermann

> You could also write a Product or External Method to access your
> databases directly, using something like:  http://pymssql.sourceforge.net/
> 
you should not do that, you would get into lots of problems with zope's
transaction machinery.
always go trough a zope connection.

robert
begin:vcard
fn:Robert  Rottermann
n: Rottermann;Robert
email;internet:[EMAIL PROTECTED]
tel;work:++41 31 333 10 20
tel;fax:++41 31 333 10 23
tel;home:++41 31 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

___
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] Monkey patch tutorial

2007-11-04 Thread robert rottermann
Garito schrieb:
> Hi!
> I would like to know if there are some monkey patch tutorial or how-to
> anyone knows where?
> 
> Thanks!
> 
> -- 
> Mis Cosas
> http://blogs.sistes.net/Garito <http://blogs.sistes.net/Garito>
> 
> 
> 
> 
> ___
> 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 )

http://wiki.zope.org/zope2/MonkeyPatch

hth
robert
begin:vcard
fn:Robert  Rottermann
n: Rottermann;Robert
email;internet:[EMAIL PROTECTED]
tel;work:++41 31 333 10 20
tel;fax:++41 31 333 10 23
tel;home:++41 31 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

___
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] ZopeProfiler:does its installation have a performance impact?

2007-09-21 Thread robert rottermann
Hi there,
does the installation of ZopeProfiler have a noticable performance
impact when it is disabled?

thanks
robert
begin:vcard
fn:Robert  Rottermann
n: Rottermann;Robert
email;internet:[EMAIL PROTECTED]
tel;work:++41 31 333 10 20
tel;fax:++41 31 333 10 23
tel;home:++41 31 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

___
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] VERY unusual zope traceback

2007-09-06 Thread robert rottermann
After my computer was iddling during the nigth I got the following
traceback. look at the rather genereous number of expected parameters.
how can somethings like this happen? Memory corruption?
restarting zope fixed it.

robert

Site Error

An error was encountered while publishing this resource.

exceptions.TypeError
Sorry, a site error occurred.

Traceback (innermost last):

* Module ZPublisher.Publish, line 196, in publish_module_standard
* Module Products.PlacelessTranslationService.PatchStringIO, line
34, in new_publish
* Module ZPublisher.Publish, line 146, in publish
* Module Zope2.App.startup, line 197, in zpublisher_exception_hook
* Module App.ZApplication, line 48, in __bobo_traverse__
* Module ZODB.DB, line 542, in open

TypeError: open() takes at least 1946389116 arguments (4 given)

in the console I see:
2007-09-07 05:33:03 ERROR PortalTransforms Cannot register transform
lynx_dump, using BrokenTransform: Error
 Unable to find binary "lynx" in
/home/robert/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/qt3/bin
2007-09-07 05:33:05 WARNING ZODB.DB DB.open() has 8 open connections
with a pool_size of 7
2007-09-07 05:33:06 WARNING ZODB.DB DB.open() has 9 open connections
with a pool_size of 7
2007-09-07 05:33:06 WARNING ZODB.DB DB.open() has 10 open connections
with a pool_size of 7
2007-09-07 05:33:11 WARNING ZODB.DB DB.open() has 11 open connections
with a pool_size of 7
2007-09-07 05:33:11 WARNING ZODB.DB DB.open() has 12 open connections
with a pool_size of 7
2007-09-07 05:33:11 WARNING ZODB.DB DB.open() has 13 open connections
with a pool_size of 7
2007-09-07 05:33:11 WARNING ZODB.DB DB.open() has 14 open connections
with a pool_size of 7
2007-09-07 05:33:11 CRITICAL ZODB.DB DB.open() has 15 open connections
with a pool_size of 7
2007-09-07 05:33:11 CRITICAL ZODB.DB DB.open() has 16 open connections
with a pool_size of 7
begin:vcard
fn:Robert  Rottermann
n: Rottermann;Robert
email;internet:[EMAIL PROTECTED]
tel;work:++41 31 333 10 20
tel;fax:++41 31 333 10 23
tel;home:++41 31 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

___
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] SOAPMethod

2007-09-03 Thread robert rottermann
Andreas Jung schrieb:
> 
> 
> --On 3. September 2007 16:10:56 +0200 robert rottermann
> <[EMAIL PROTECTED]> wrote:
>> 
> 
> 
> Likely you need tal:content="python: context.requestStudentData(...)"
> 
> -aj
andreas is perfectly right ..

rr
begin:vcard
fn:Robert  Rottermann
n: Rottermann;Robert
email;internet:[EMAIL PROTECTED]
tel;work:++41 31 333 10 20
tel;fax:++41 31 333 10 23
tel;home:++41 31 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

___
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] SOAPMethod

2007-09-03 Thread robert rottermann
Mark Baldry schrieb:
> I need to get some information from a database and display it on our website. 
> It's a very simple query just passing one number to get the record. The only 
> way i am allowed to query this database is via SOAP.
> 
> I have installed the SOAPMethod and have got it working but i cannot get the 
> result to display. I can only view the result when i look at the source of 
> the page.
> 
> the dtml Method i am using is written -
> 
> 
> 
> this is what the help that came with the product says to use.
> 
> (requestStudentData is the name of the SOAPMethod and "5506239" is the query 
> string i am passing to the database.)
> 
>
you better do not use dtml but tal (aka page templates). to learn about
it go to the zope site and look up the zope book (take the one on plope.org)

it would look something like:

  
The title
  
  

Some information on student 5506239
    

  



HTH
robert
begin:vcard
fn:Robert  Rottermann
n: Rottermann;Robert
email;internet:[EMAIL PROTECTED]
tel;work:++41 31 333 10 20
tel;fax:++41 31 333 10 23
tel;home:++41 31 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

___
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 eval a variable within the acquisition path?

2007-08-21 Thread robert rottermann
Tim Nash schrieb:
> I apologize for the question (the zope area of my brain must need
> coffee) but I can't find the answer in the zope book or in any of the
> scripts posted to the zope cookbook.
> 
> I want to use a variable in a acquisition path.
> 
> So for example, from the zope book on scripts, imagine that
> vaccinateplan() printed out a specific animals vaccination plan.
> 
> Now instead of saying 'LargeAnimals' and 'hippo' like so:
> 
> print context.Vet.LargeAnimals.hippo.vaccinateplan()
> 
> I want to do like this:
> 
> category = REQUEST.form['category']
> animal = REQUEST.form['animal']
> 
> print context.Vet.category.animal.vaccinateplan()
print context.Vet[category]
or
print getattr(context.Vet, category, 'some default value')
hth
robert
begin:vcard
fn:Robert  Rottermann
n: Rottermann;Robert
email;internet:[EMAIL PROTECTED]
tel;work:++41 31 333 10 20
tel;fax:++41 31 333 10 23
tel;home:++41 31 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

___
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] asynchronous MailHost

2007-08-19 Thread robert rottermann
Andreas Jung schrieb:
> 
> 
> --On 19. August 2007 11:37:30 -0600 Sean Fulmer <[EMAIL PROTECTED]> wrote:
> 
>> I just read about the latest changes to MailHost:
>>
>> http://blog.zopyx.com/blog_ajung/archive/2007/08/19/zopes-mailhost-overha
>> uled
>>
>> I'm currently using MaildropHost to do async delivery and would like
>> to streamline that setup if possible.
>>
>> Can the latest MailHost be dropped into Zope 2.9.8?
>>
> 
> If you can get zope.sendmail running under Zope 3.2/Zope 2.9: yes.
> 
> -aj
> if you achieve it I would be very much interested in a how-to
robert
begin:vcard
fn:Robert  Rottermann
n: Rottermann;Robert
email;internet:[EMAIL PROTECTED]
tel;work:++41 31 333 10 20
tel;fax:++41 31 333 10 23
tel;home:++41 31 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

___
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 to install zope eggs

2007-07-09 Thread robert rottermann
hi there,
I would like to install an egg that depends on zope eggs installed
(i18ndude)
this of course can easily be done with easy_install.
however afterwards non of my zope installations (and I have a number of
them on the system) are working anymore because python is picking up
some parts of the installed zope eggs.

with no-deps I can avoid installing the zope eggs but the i18ndude does
not work anymore.

how can I install zope eggs (or i18ndude that is) such that my zope
installations still work?
or phrased differently:
how can I install the zope eggs into a given zope instance?

thanks
robert
begin:vcard
fn:robert  rottermann
n:rottermann;robert 
email;internet:[EMAIL PROTECTED]
tel;work:031 333 10 20
tel;fax:031 333 10 23
tel;home:031 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

___
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] Problem with using versions.

2007-04-10 Thread robert rottermann
catherine,
what do you mean by version?
what zope and additional products are you using?

robert

Catherine E. Reinehr wrote:
> Hi,
>
> I've been working in a version for over a week and finally finished my
> changes today.  I saved them and quit the version, but the affected folder
> still has a lock on it.  I've tried four times now to save my changes, and
> it's just not working.  The first time, it seemed to publish the changes but
> the folder was still locked.  On later tries, I encounter an error when I
> try to access the page after saving changes.  Any suggestions?
>
> Thanks,
> Cathy
>
> -
>
> Catherine E. Reinehr
> Webmaster & Publications Designer
> Huntingdon College
> 1500 E. Fairview Ave.
> Montgomery, AL 36106
> (334) 833-4429 / Flowers 103
>
> ___
> 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 )
>
>   

begin:vcard
fn:robert  rottermann
n:rottermann;robert 
email;internet:[EMAIL PROTECTED]
tel;work:031 333 10 20
tel;fax:031 333 10 23
tel;home:031 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

___
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 can I reset zope time???

2007-03-22 Thread robert rottermann
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jens Vagelpohl schrieb:
> 
> On 23 Mar 2007, at 07:41, Flemming Bjerke wrote:
>>>> But, now, not only have all my changes the date 12/12-2007 in the
>>>> undo history, every object I have changed gets this date as well!
>>>> Apparently, zope won't accept to go backward in time.
>>>>
>>>> How do I reset the zope's time?
>>>
>>> Undo is transactional, meaning an undo is actually a new transaction
>>> instead of removing an old transaction. What you are trying to do is
>>> not possible, unless you physically truncate the database.
> 
>> I am not absolutely sure I understand you. I succeeded in undoing. My
>> problem is that zope keeps on with the date 12/12-07. The zodb does
>> not seem to accept a timestamp that is earlier than the last
> 
> That's what I am trying to tell you. Any undo is actually a brand-new
> transaction that will by definition set the modification time to the
> current time. You *cannot* get back to the old modification time using
> Undo. This does not mean that Undo won't work at all, it will. But you
> will not get back your old modification time.
> 
> jens
> 

so it migth be enough, to export the folder(s) with your sites
remove the Data.fs to a secure place, restart zope and the reimport your
sites.

just an idea
robert
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFGA4lfGaryJ0T9kUYRAoKMAJ97ooj+qxLZ5yA6kjk++w3iTj1xDgCfReFA
29pvh80BOjil2GPXxXurhdg=
=92Fr
-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] What is the best way to debug a Zope 2.62 application.

2007-03-19 Thread robert rottermann
Mark, Jonathan (Integic) wrote:
> I have a properly running instance of Zope 2.62 but no zopectl file.
>
> What is the best way to debug this version of Zope? Should I install zopectl?
>   
> 
>
> ___
> 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 )
>   
i believe zopectl was only introduced with 2.7.
there was a precursor to zopectl which still can be found somewhere in
the cvs.
however its layout was quiet a bit different to the one used with the
actual one.
so I doupt very much that this would be worth your efforts.

robert
begin:vcard
fn:robert  rottermann
n:rottermann;robert 
email;internet:[EMAIL PROTECTED]
tel;work:031 333 10 20
tel;fax:031 333 10 23
tel;home:031 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

___
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] form-script-zsql

2007-03-07 Thread robert rottermann
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

result = context.db_conn_id.db.query('YOUR QUERY HERE')
robert

javi lopez schrieb:
> I´m doing a form with username and email, these values go script
> python and with a zsql method inside script, it stored in DB
> I have a zpt with a form
> I have a script python::
> 
> Connection DB::
> db_system_type = REQUEST.get('db_system_type', 'mysql')
> from Products.ZMySQLDA import DA
> DA.manage_addZMySQLConnection(self, db_conn_id, '',
> REQUEST.get('db_conn_str', '[EMAIL PROTECTED] zzz zzz'))
> 
> #now i have to do zsql method to store the values in DB
> how can i do it??? Can you help me???Thanks
> 
> When I fill in the form and i push "send" button, it store username
> and email in DB
> ___
> 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 )
> 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFF7qxVGaryJ0T9kUYRAkSHAJ9DrgVCp5K79z1NAsQv6hZQtLZMHQCeP8i/
7ewGRmvUrDkvr0zBDI1tHas=
=Tlfx
-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 to call a script by it's name stored in a variable.

2007-02-20 Thread robert rottermann
rieh25 wrote:
> How can I do something like this?
> 
> var = '/Projects/test_py'
> 
> return call_by_name(var)
> 
> 
> Thanks.
fun = context.restrictedTraverse(var)
return fun()

then there is path and getattr you should look at.

robert
begin:vcard
fn:robert  rottermann
n:rottermann;robert 
email;internet:[EMAIL PROTECTED]
tel;work:031 333 10 20
tel;fax:031 333 10 23
tel;home:031 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

___
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] cpu load 99 percent a lot in plone evinironment

2007-02-15 Thread Robert (Jamie) Munro
Philip Kilner wrote:
> Hi Robert (Jamie?),

Most people call me Jamie, but Robert is fine, and it's what it says on
all my official documents.

> AHAH does not seem to be much discussed here - it's worth reading: -
> 
>   http://microformats.org/wiki/rest/ahah
> &
>   http://www.gizax.it/ahahsection/
> 
>   (I have based my work on the script in the second link)
> 
> Short version: uses AJAX-like technique of rewriting the HTML using
> JavaScript, but returns pure HTML as opposed to XML or JSON, so trivial
> to implement, and can degrade gracefully.

Very useful. I've based my system on the first link because I didn't
need to use POSTs, I just add ?foo=bar to the end of the URL and get it
as normal. I added the ability to load a list of urls and element ids
one after the other, then only activate the submit button at the bottom
of the page when the whole form was loaded.  This means the top of the
page loads quickly, and the rest loads section by section before people
scroll down to it.

I was thinking I would have to do something like this, and your links
made it really easy.

Robert (Jamie) Munro

___
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] cpu load 99 percent a lot in plone evinironment

2007-02-13 Thread Robert (Jamie) Munro
Jens Vagelpohl wrote:
> 
> On 9 Feb 2007, at 09:29, Marko Kruijer wrote:
>>> I do notice that my suspected page is slow, but that's a page
>>> template, and there is not very much out of the ordinary going on
>>> there. Just a loop in tal over a sql result set.
> 
> "Just a loop in tal over a sql result set" can be extremely slow,
> depending on the size of your result set. You may not realize that every
> time you touch one of those resultset record objects the security
> machinery gets in the game to ensure the executing user is allowed to
> see the rendered result. This is true for every single field you're
> trying to show on the page.

I've been having similar speed problems with a page that loops through a
lot of SQL records. From what I can tell from the profiler, it is the
security machinery that is at fault.

> Workarounds I have used in this situation (eons ago) involved retrieving
> the resultset in trusted code (inside a filesystem product or an
> External Method) and converting it to a sequence of simple types, like a
> sequence of dictionaries, before handing it back to the page template.
> Those simple types don't cause security assertions and the rendering is
> sped up immensely.

There seems to be a built in method - .dictionaries() that does exactly
this. Unfortunatley, neither it, nor a simple external method I wrote to
 call my ZSQL methods seemed to help me.

Robert (Jamie) Munro

___
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] Urgent Help Required......

2007-01-15 Thread robert rottermann
Jonathan wrote:
>
> - Original Message - From: "robert rottermann" <[EMAIL PROTECTED]>
> To: "Jonathan" <[EMAIL PROTECTED]>
> Cc: "robert rottermann" <[EMAIL PROTECTED]>; "Reena Karthikeyan"
> <[EMAIL PROTECTED]>; 
> Sent: Sunday, January 14, 2007 9:58 AM
> Subject: Re: [Zope] Urgent Help Required..
>
>
>> Jonathan wrote:
>>>
>>> - Original Message - From: "robert rottermann"
>>> <[EMAIL PROTECTED]>
>>> To: "Reena Karthikeyan" <[EMAIL PROTECTED]>
>>> Cc: 
>>> Sent: Sunday, January 14, 2007 12:48 AM
>>> Subject: Re: [Zope] Urgent Help Required..
>>>
>>>
>>>> there is very good  dolumentation to be found under:
>>>> http://www.plope.com/Books/2_7Edition
>>>> (disregard anything about dtml and zclasses, this are dying concepts)
>>>
>>> ZClasses are deprecated as of zope 2.10.0 beta 1 (see CHANGES.txt).
>>>
>>> DTML is NOT deprecated and is NOT a dying concept.  ZPT and DTML are
>>> used by different people for different reasons; both technologies have
>>> their strengths and weaknesses, but both are viable, ongoing
>>> components of Zope.
>>>
>>>
>>> Jonathan
>>>
>>>
>>>
>> your right Dtml is not dying. its dead.
>
> At the risk of feeding the troll...
>
> One of the wonderful things (of which there are many!) about Zope, is
> that Zope provides a plethora of tools for building applications. 
> Some people prefer certain tools over others.  The choice of tool is
> less important than whether it meets the needs of the application.
>
> If a Zope developer has a preference for one tool over another that is
> an internal choice, and I am sure that newcomers to Zope would be
> happy to hear the reasons for the tool selection.  However, it is not
> helpful to disparage the other tools as newcomers to Zope may find
> them useful.  Saying that certain features are 'dead' (which they are
> not in this particular instance) may scare newcomers away from that
> tool, and possibly away from Zope, which would not be helpful to the
> Zope community as a whole.
>
> Zope is a fantastic web application development platform, and it is in
> our own best interests to ensure that newcomers are informed about all
> of the many features and solutions it offers.
>
>
> Jonathan
>
>
jonathan,
you are of course perfectly right.
but tough DTML still exists it is dated and largely replaced by tal et al.
all new developpment efforts go into this set of utilities.
I strongly recommend any newcomer not to touch DTML  unless she has to
deal with some legacy code.
(ZSQL does not count here).

robert
begin:vcard
fn:robert  rottermann
n:rottermann;robert 
email;internet:[EMAIL PROTECTED]
tel;work:031 333 10 20
tel;fax:031 333 10 23
tel;home:031 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

___
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] Urgent Help Required......

2007-01-14 Thread robert rottermann
Jonathan wrote:
>
> - Original Message - From: "robert rottermann" <[EMAIL PROTECTED]>
> To: "Reena Karthikeyan" <[EMAIL PROTECTED]>
> Cc: 
> Sent: Sunday, January 14, 2007 12:48 AM
> Subject: Re: [Zope] Urgent Help Required..
>
>
>> there is very good  dolumentation to be found under:
>> http://www.plope.com/Books/2_7Edition
>> (disregard anything about dtml and zclasses, this are dying concepts)
>
> ZClasses are deprecated as of zope 2.10.0 beta 1 (see CHANGES.txt).
>
> DTML is NOT deprecated and is NOT a dying concept.  ZPT and DTML are
> used by different people for different reasons; both technologies have
> their strengths and weaknesses, but both are viable, ongoing
> components of Zope.
>
>
> Jonathan
>
>
>
your right Dtml is not dying. its dead.
some zombies here and there however .. :)
robert

PS: some 5 years ago I was proficient with Dtml. Nowadays I get the
shivers if I have to understand a piece of it

begin:vcard
fn:robert  rottermann
n:rottermann;robert 
email;internet:[EMAIL PROTECTED]
tel;work:031 333 10 20
tel;fax:031 333 10 23
tel;home:031 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

___
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] Path Level in Catalog

2007-01-14 Thread robert rottermann
try just rebuilding the catalog in prtal_catalog/advanced ->rebuild
robert
KJZZ Webmaster wrote:
> I recently had to rebuild our catalog using the manage_catalogFind form in
> the ZMI.  In this case, I simply selected the object types that I wanted
> recataloged, then clicked the "find and catalog" button.
>
> However, I now notice that almost every object that was found is entered
> into the catalog twice, once with the relative path from the top of the site,
> and second with a path that begins above the folder in which the site is
> contained, such as:
>
> 1) /myobject/
>
> 2) /mysite/myojbect
>
> Tell me, does anyone have any suggestions for an expression to find and 
> catalog
> only objects with the first path and omit all objects starting with the second
> path.
>
> Any advice is appreciated.
>
> John T.
>
>
> ___
> 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 )
>
>   

begin:vcard
fn:robert  rottermann
n:rottermann;robert 
email;internet:[EMAIL PROTECTED]
tel;work:031 333 10 20
tel;fax:031 333 10 23
tel;home:031 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

___
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] Urgent Help Required......

2007-01-13 Thread robert rottermann
there is very good  dolumentation to be found under:
http://www.plope.com/Books/2_7Edition
(disregard anything about dtml and zclasses, this are dying concepts)
google on how to install new zope products.
I found: http://highspeedrails.com/Support/Howto/InstallProducts

robert
Reena Karthikeyan wrote:
>
> *Dear All,*
>
> * *
>
> *I am a new user of Zope. I am sure, all of you all are masters at
> using Zope. I am not sure if I am writing my query to the right place.
> However, please forgive me if I am doing something wrong. *
> ** 
> *I work as a software test engineer in the middle east and was looking
> for a good bug tracking tool and that is when I happened to find this
> site. I found Zope to be very useful and now my next( Most
> important) step is to start using the Issue Tracker tool. However, I
> am unable do so. The reason being that I do not exactly know what to do. *
>
> * *
>
> *I have installed Zope 2.9.6 from the link below: *
>
> *http://www.zope.org/Products/Zope/2.9.6*
>
> * *
>
> *and have downloaded issuetracker from : *
> *http://www.issuetrackerproduct.com/Download#IssueTrackerProduct*
>
> * *
>
> *When I unzip issue tracker all I see is a bunch of gif files, dtml
> files, py and zpt files. I have no idea what to do next. Please help
> me out to use this tool at the earliest. Also I would really
> appreciate it if you could provide me with any kind of documentation
> available to carry out the same. *
>
>   
>
> /*Thanks and Regards,*/
>
> /*Reena Diju*/
>
> 
>
> ___
> 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 )
>   

begin:vcard
fn:robert  rottermann
n:rottermann;robert 
email;internet:[EMAIL PROTECTED]
tel;work:031 333 10 20
tel;fax:031 333 10 23
tel;home:031 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

___
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] ZSQL Methods and transaction control

2007-01-10 Thread robert rottermann
Hi there,

I am implementing a tool to handle userdata that is stored in a MySQL db.
The underlaying logic of the stored procedures used to maintain the db
content
dictate that I have to control the transactions myself.
I understand that there is a way to handle transaction controll in the
ZMySQL
methods. However I find no documentation at all on how to use it.

Without using ZMySQL methods I would be using the following piece of code:
db = mysql.connect(host="localhost" ...)
cursor = db.cursor()
query = "CALL insertUser('%s', '$xxx$', @id, @error);select @id, @error"
% 'JohnTheUser'
cursor.execute(query)
# get the next resultset, it has the result of the select
cursor.nextset()
result = cursor.fetchall()[0]
error = int(result[1])
if error:
print "error %s when trying to add user %s" % (ERRRORS[error],
'JohnTheUser')
db.rollback()
continue #we are in a loop actually
..
db.commit()

How can I mimic that using ZSQL Methods

thanks for any pointers
Robert

begin:vcard
fn:robert  rottermann
n:rottermann;robert 
email;internet:[EMAIL PROTECTED]
tel;work:031 333 10 20
tel;fax:031 333 10 23
tel;home:031 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

___
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] acl_users

2007-01-03 Thread robert rottermann
readlines returns also the terminating \n.
you have to strip it
hth
rr
Sean Duffy wrote:
> Hi,
>
> I'm trying to do a batch add of users to the standard acl_users folder.
>
> Note quite a total success or total failure just yet.
>
> First I made a text file (usr_pwd.txt) in the form of password space 
> username. and placed it (temporarily) in the Extensions
> directory.
>
> Then an external method (LoadUsers) to read it:
>
> def LoadUsers(self):
>
>   f=open('/var/lib/zope/Extensions/usr_pwd.txt', 'r')
>   y=f.readlines()
>   return y
>
> And a script (user_load):
>
> ## Script (Python) "user_load"
> ##bind container=container
> ##bind context=context
> ##bind namespace=_
> ##bind script=script
> ##bind subpath=traverse_subpath
> ##parameters=
> ##title=
> ##
> y=context.LoadUsers()
> for x in y:
>   z=x.split(' ')
>   acl = container.restrictedTraverse( '/foobar/acl_users' )
>   acl.userFolderAddUser( z[1], z[0], '', '' )
> return 0
>
> I hit the Test tab and now I have an acl_users folder full of users with the 
> correct user names, and their passwords show the
> correct number of characters, however I can't log in using any of the 
> user/password combinations.
>
> Should the path '/foobar/acl_users' been simply '/foobar/' or '/foobar' ?
>
> Any suggestions?
>
> Thanks,
>
> Sean
>
> ___
> 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 )
>
>   

begin:vcard
fn:robert  rottermann
n:rottermann;robert 
email;internet:[EMAIL PROTECTED]
tel;work:031 333 10 20
tel;fax:031 333 10 23
tel;home:031 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

___
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: acl_users: can not access source_groups

2006-11-30 Thread robert rottermann
I found out some more:

I found the reason for the problem (I think).
Obvioussly one isn*NOT* allowed to call a user and a group the same.

If you do so, in the acl_users you CAN NOT assign a user to a group
 that has an identical name.
In Plone however you can assign it. If you do so, the aforementioned
error happens.

robert

robert rottermann schrieb:
> when I clihttp://plone.org/development/info/participationck on source_groups 
> in acl_users of a plone site I get athe following trace back.
> when I comment out the offending assert everything seems to work fine.
> the check the comment to the assert says:
> # should be one and only one mapping to 'k'
> 
> i therefore assume, that some of the userrs or groups are defined at more 
> than one place.
> how is this possible?
> 
> I have some "normal" zope users, and an LDAP Plugin.
> 
> thanks for any pointers.
> 
> the site is using Plone 2.5.0
> 
> robert
> 
> 
> 
> Traceback (innermost last):
>   Module ZPublisher.Publish, line 115, in publish
>   Module ZPublisher.mapply, line 88, in mapply
>   Module ZPublisher.Publish, line 41, in call_object
>   Module Shared.DC.Scripts.Bindings, line 311, in __call__
>   Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
>   Module Products.PageTemplates.PageTemplateFile, line 113, in _exec
>   Module Products.PageTemplates.PageTemplate, line 104, in pt_render
>-  /zehnderi/zehnderi/acl_users/source_groups/manage_groups>
>   Module TAL.TALInterpreter, line 238, in __call__
>   Module TAL.TALInterpreter, line 281, in interpret
>   Module TAL.TALInterpreter, line 457, in do_optTag_tal
>   Module TAL.TALInterpreter, line 442, in do_optTag
>   Module TAL.TALInterpreter, line 437, in no_tag
>   Module TAL.TALInterpreter, line 281, in interpret
>   Module TAL.TALInterpreter, line 715, in do_condition
>   Module TAL.TALInterpreter, line 281, in interpret
>   Module TAL.TALInterpreter, line 691, in do_loop_tal
>   Module TAL.TALInterpreter, line 281, in interpret
>   Module TAL.TALInterpreter, line 531, in do_insertText_tal
>   Module Products.PageTemplates.TALES, line 227, in evaluateText
>   Module Products.PageTemplates.TALES, line 221, in evaluate
>- URL: manage_groups
>- Line 55, Column 4
>- Expression:  here.listAssignedPrincipals(info['id'])] )>
>- Names:
>   {'container':  /zehnderi/zehnderi/acl_users/source_groups>,
>'context':  /zehnderi/zehnderi/acl_users/source_groups>,
>'default':  0x2b259c07ae18>,
>'here': ,
>'loop':  0x2bd16440>,
>'modules':  instance at 0x2b259c07b290>,
>'nothing': None,
>'options': {'args': ()},
>'repeat':  0x2bd16440>,
>'request':  URL=http://localhost:8080/zehnderi/zehnderi/acl_users/source_groups/manage_groups>,
>'root': ,
>'template':  /zehnderi/zehnderi/acl_users/source_groups/manage_groups>,
>'traverse_subpath': [],
>'user': }
>   Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
>- __traceback_info__: ','.join( [x[1] for x in 
> here.listAssignedPrincipals(info['id'])] )
>   Module Python expression "','.join( [x[1] for x in 
> here.listAssignedPrincipals(info['id'])] )", line 1, in
> 
>   Module Products.PluggableAuthService.plugins.ZODBGroupManager, line 253, in 
> listAssignedPrincipals
> AssertionError

begin:vcard
fn:robert  rottermann
n:rottermann;robert 
email;internet:[EMAIL PROTECTED]
tel;work:031 333 10 20
tel;fax:031 333 10 23
tel;home:031 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

___
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] Permission Denied...New Build

2006-11-29 Thread robert rottermann
this lock was maybe created by root.
(when zope started from /etc/init.d)

if so you have to delete it as root.

and of course your "efective user" defined (in 
/usr/local/zope/2012/etc/zope.conf)
must be set to somebody that has write permission in /usr/local/zope/2012/var

robert

Nancy Donnelly schrieb:
> 79797975
> Hi;
> After nuking my Zope instances by trying to copy my main HD over to my
> new one, I'm rebuilding with backups. But I'm having a problem. I built
> Z29 from source. I created an instance, specified the path, "nancy" as
> the user and a p/w. When I go to "runzope", as root or as nancy, I get
> this error:
> 
> [EMAIL PROTECTED]:local/zope/2012 (108) ./bin/runzope
> Traceback (most recent call last):
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/run.py", line
> 56, in ?
> run()
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/run.py", line
> 21, in run
> starter.prepare()
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/__init__.py",
> line 98, in prepare
> self.startZope()
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/__init__.py",
> line 257, in startZope
> Zope2.startup()
>   File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/__init__.py",
> line 47, in startup
> _startup()
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/App/startup.py", line
> 60, in startup
> DB = dbtab.getDatabase('/', is_root=1)
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/datatypes.py",
> line 280, in getDatabase
> db = factory.open(name, self.databases)
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/datatypes.py",
> line 178, in open
> DB = self.createDB(database_name, databases)
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/datatypes.py",
> line 175, in createDB
> return ZODBDatabase.open(self, databases)
>   File "/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/config.py", line
> 97, in open
> storage = section.storage.open()
>   File "/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/config.py", line
> 135, in open
> quota=self.config.quota)
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/FileStorage/FileStorage.py",
> line 112, in __init__
> self._lock_file = LockFile(file_name + '.lock')
>   File "/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/lock_file.py",
> line 60, in __init__
> self._fp = open(path, 'w+')
> IOError: [Errno 13] Permission denied:
> '/usr/local/zope/2012/var/Data.fs.lock'
> 
> What do?
> TIA,
> Nancy
> 
> 
> Cheap Talk? Check out
> <http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com>
> Yahoo! Messenger's low PC-to-Phone call rates.
> 
> 
> 
> 
> ___
> 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 )

begin:vcard
fn:robert  rottermann
n:rottermann;robert 
email;internet:[EMAIL PROTECTED]
tel;work:031 333 10 20
tel;fax:031 333 10 23
tel;home:031 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

___
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] acl_users: can not access source_groups

2006-11-29 Thread robert rottermann
when I click on source_groups in acl_users of a plone site I get athe following 
trace back.
when I comment out the offending assert everything seems to work fine.
the check the comment to the assert says:
# should be one and only one mapping to 'k'

i therefore assume, that some of the userrs or groups are defined at more than 
one place.
how is this possible?

I have some "normal" zope users, and an LDAP Plugin.

thanks for any pointers.

the site is using Plone 2.5.0

robert



Traceback (innermost last):
  Module ZPublisher.Publish, line 115, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 41, in call_object
  Module Shared.DC.Scripts.Bindings, line 311, in __call__
  Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
  Module Products.PageTemplates.PageTemplateFile, line 113, in _exec
  Module Products.PageTemplates.PageTemplate, line 104, in pt_render
   - 
  Module TAL.TALInterpreter, line 238, in __call__
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 457, in do_optTag_tal
  Module TAL.TALInterpreter, line 442, in do_optTag
  Module TAL.TALInterpreter, line 437, in no_tag
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 715, in do_condition
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 691, in do_loop_tal
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 531, in do_insertText_tal
  Module Products.PageTemplates.TALES, line 227, in evaluateText
  Module Products.PageTemplates.TALES, line 221, in evaluate
   - URL: manage_groups
   - Line 55, Column 4
   - Expression: 
   - Names:
  {'container': ,
   'context': ,
   'default': ,
   'here': ,
   'loop': ,
   'modules': ,
   'nothing': None,
   'options': {'args': ()},
   'repeat': ,
   'request': http://localhost:8080/zehnderi/zehnderi/acl_users/source_groups/manage_groups>,
   'root': ,
   'template': ,
   'traverse_subpath': [],
   'user': }
  Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
   - __traceback_info__: ','.join( [x[1] for x in 
here.listAssignedPrincipals(info['id'])] )
  Module Python expression "','.join( [x[1] for x in 
here.listAssignedPrincipals(info['id'])] )", line 1, in

  Module Products.PluggableAuthService.plugins.ZODBGroupManager, line 253, in 
listAssignedPrincipals
AssertionError
begin:vcard
fn:robert  rottermann
n:rottermann;robert 
email;internet:[EMAIL PROTECTED]
tel;work:031 333 10 20
tel;fax:031 333 10 23
tel;home:031 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

___
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] Nuked Installations! Problem w/ Rebuild!

2006-11-29 Thread robert rottermann
you probably have to reinstall (rebuild) zope.
i *assume* that your zope is not using the python it was built with.

robert

Nancy Donnelly schrieb:
> 102
> Hi;
> I just went to copy my main HD on my server to my new 1/2 teraflop HD
> and it wiped out the zopecltsockets and the var directories! Luckly I
> have backups of the Data.fs that are recent. So, I'm rebuilding with
> Z29, but when I go to crank up an instance with runzope, I get this:
> 
> Traceback (most recent call last):
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/run.py", line
> 56, in ?
> run()
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/run.py", line
> 19, in run
> opts = _setconfig()
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/run.py", line
> 48, in _setconfig
> opts.realize(doc="Sorry, no option docs yet.")
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/zdaemon/zdoptions.py", line
> 273, in realize
> self.load_schema()
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/zdaemon/zdoptions.py", line
> 321, in load_schema
> self.schema = ZConfig.loadSchema(self.schemafile)
>   File "/usr/local/src/Zope-2.9.6-final/lib/python/ZConfig/loader.py",
> line 31, in loadSchema
> return SchemaLoader().loadURL(url)
>   File "/usr/local/src/Zope-2.9.6-final/lib/python/ZConfig/loader.py",
> line 65, in loadURL
> return self.loadResource(r)
>   File "/usr/local/src/Zope-2.9.6-final/lib/python/ZConfig/loader.py",
> line 159, in loadResource
> schema = ZConfig.schema.parseResource(resource, self)
>   File "/usr/local/src/Zope-2.9.6-final/lib/python/ZConfig/schema.py",
> line 27, in parseResource
> xml.sax.parse(resource.file, parser)
>   File "/usr/local/lib/python2.4/xml/sax/__init__.py", line 33, in parse
> parser.parse(source)
>   File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 107, in parse
> xmlreader.IncrementalParser.parse(self, source)
>   File "/usr/local/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse
> self.feed(buffer)
>   File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 207, in feed
> self._parser.Parse(data, isFinal)
>   File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 300, in
> start_element
> self._cont_handler.startElement(name, AttributesImpl(attrs))
>   File "/usr/local/src/Zope-2.9.6-final/lib/python/ZConfig/schema.py",
> line 99, in startElement
> getattr(self, "start_" + name)(attrs)
>   File "/usr/local/src/Zope-2.9.6-final/lib/python/ZConfig/schema.py",
> line 475, in start_schema
> keytype, valuetype, datatype = self.get_sect_typeinfo(attrs)
>   File "/usr/local/src/Zope-2.9.6-final/lib/python/ZConfig/schema.py",
> line 201, in get_sect_typeinfo
> datatype = self.get_datatype(attrs, "datatype", "null", base)
>   File "/usr/local/src/Zope-2.9.6-final/lib/python/ZConfig/schema.py",
> line 194, in get_datatype
> return self._registry.get(dtname)
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/ZConfig/datatypes.py", line
> 398, in get
> t = self.search(name)
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/ZConfig/datatypes.py", line
> 423, in search
> package = __import__(n, g, g, component)
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/datatypes.py",
> line 20, in ?
> from ZODB.config import ZODBDatabase
>   File "/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/__init__.py",
> line 20, in ?
> from persistent import TimeStamp
>   File
> "/usr/local/src/Zope-2.9.6-final/lib/python/persistent/__init__.py",
> line 19, in ?
> from cPersistence import Persistent, GHOST, UPTODATE, CHANGED, STICKY
> ImportError: No module named cPersistence
> 
> What do I do? Please help...under pressure.
> 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 )

begin:vcard
fn:robert  rottermann
n:rottermann;robert 
email;internet:[EMAIL PROTECTED]
tel;work:031 333 10 20
tel;fax:031 333 10 23
tel;home:031 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

___
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] New HD, Moving ZODB

2006-11-22 Thread robert rottermann
Andreas Jung wrote:
> 
> 
> --On 22. November 2006 08:19:23 -0800 Nancy Donnelly 
> <[EMAIL PROTECTED]> wrote:
> 
>> Hi;
>> I've added a new HD to my server. I have 2 instances of Zope 2.7.8. I
>> need to move at least one instance of ZODB to the new HD (I can easily
>> move them both if necessary). Is there a how-to on how to do this, or, if
>> not, how do I do it? TIA,
> 
> Do you know the concept of a symlink?
> 
> -aj
> 
i believe, nancy is using a windows box.

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


begin:vcard
fn:robert  rottermann
n:rottermann;robert 
email;internet:[EMAIL PROTECTED]
tel;work:031 333 10 20
tel;fax:031 333 10 23
tel;home:031 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

___
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] New HD, Moving ZODB

2006-11-22 Thread robert rottermann
Nancy Donnelly schrieb:
> Hi;
> I've added a new HD to my server. I have 2 instances of Zope 2.7.8. I
> need to move at least one instance of ZODB to the new HD (I can easily
> move them both if necessary). Is there a how-to on how to do this, or,
> if not, how do I do it?
> TIA,
> 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 )

just copy the instances directories.
in the bin and the etc directory of the respective instances are some files
notably bin/zopectr, bin/runzope and etc/zope.conf
that contain some hardcoded path to python and where zope is to be found.
you have to adapt them to the new settings.

robert
begin:vcard
fn:robert  rottermann
n:rottermann;robert 
email;internet:[EMAIL PROTECTED]
tel;work:031 333 10 20
tel;fax:031 333 10 23
tel;home:031 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

___
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] Password expiration

2006-11-14 Thread robert rottermann
zope by it self can not do such an expiration.

there is a product for plone cmfmeber (now in transition to
become obsolete and replaced by membrane) that treats a user
like some portal content that can be controlled by a workflow,
expiration date and so on.

I do not know whet the state of membrane is.
robert

Sinang, Danny wrote:
> Hello,
>  
> "Out of the box", is Zope able to do password-expiration ?
>  
> Or do I need an authentication product to do this ? Will this external
> product be able to effect password expiration on existing acl_user
> folder users ?
>  
>  
> Regards,
>  
> Danny
>  
> 
> 
> 
> 
> ___
> 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 )

begin:vcard
fn:robert  rottermann
n:rottermann;robert 
email;internet:[EMAIL PROTECTED]
tel;work:031 333 10 20
tel;fax:031 333 10 23
tel;home:031 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

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

2006-11-14 Thread robert rottermann

> 
> Nevertheless, I think we as a community could show some class and style.
+100

the entertaining value of rude mails wear off quickly..
robert

begin:vcard
fn:robert  rottermann
n:rottermann;robert 
email;internet:[EMAIL PROTECTED]
tel;work:031 333 10 20
tel;fax:031 333 10 23
tel;home:031 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

___
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: PAS and md5 or crypt passwords

2006-10-16 Thread Robert (Jamie) Munro
Piotr Furman wrote:
> 
>> I've edited GMailAuthPlugin, renamed it MD5AuthPlugin, added that code
>> and removed the google specific code. It doesn't give any errors, but it
>> also doesn't let me log in. I've tried adding a line to log things, but
>> that doesn't seem to be working either.
>>
> 
> Maybe You should take a look at SQLPASPlugin -
> http://plone.org/products/sqlpasplugin - there are some SHA encryption
> possibilities, however they are commented by default.
> So You would have to modify it's code little bit.

That's what I was using before. I had no idea that it supported SHA, or
that it was so easy to add MD5. That has solved my problem - Thanks

It's a pretty silly implementation, though. The point of hashing
passwords with MD5 or SHA1 is that if an attacker can read the password
files due to some kind of security leak, he still doesn't have the
passwords themselves, so he still can't login. Unfortunately, the way it
is implemented in SQLPASPlugin, the fact that he doesn't have the
password doesn't matter because if you put the hash itself in the
password field, you are allowed into the site.

It doesn't matter too much for my application, but it's something that
should probably be fixed.

Thanks for everyone's advice, though.

Robert (Jamie) Munro

___
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: PAS and md5 or crypt passwords

2006-10-12 Thread Robert (Jamie) Munro
Tres Seaver wrote:
> Robert (Jamie) Munro wrote:
>>> How do you use md5 passwords in PAS?
>>>
>>> I've got an SQL database already populated with usernames and md5
>>> passwords from an old system that I am replacing - I don't have the
>>> cleartext passwords.
> 
> You write an authentication plugin which takes the credentials as keys
> in a dict (e.g., 'login_name', 'password'), encrypts the password using
> the same algorithm as your old system, and then compares them.  E.g.,
> (untested)::
> 
>   import md5
>   PASSWORD_TEST_SQL = ("select * from users where login_name = '%s' "
>"and encrypted_pw = '%s'")
>   def authenticateCredentials(self, credentials):
>   login = credentials['login']
>   clear = credentials['password']
>   encrypted = md5.new(clear).hexdigest() # or whatever
>   matched = self._execSQL(PASSWORD_TEST_SQL % (login, encrypted))
>   if matched:
>  return matched[0]['userid'], login
>   return {}

I've edited GMailAuthPlugin, renamed it MD5AuthPlugin, added that code
and removed the google specific code. It doesn't give any errors, but it
also doesn't let me log in. I've tried adding a line to log things, but
that doesn't seem to be working either.

  LOG("MD5AuthPlugin", INFO, "Login attempt: login: %s, clear: %s,
encrypted: %s" % (login,clear,encrypted))

Any ideas?

Thanks,

Robert (Jamie) Munro

___
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] PAS and md5 or crypt passwords

2006-10-10 Thread Robert (Jamie) Munro
How do you use md5 passwords in PAS?

I've got an SQL database already populated with usernames and md5
passwords from an old system that I am replacing - I don't have the
cleartext passwords.

Thanks,

Robert (Jamie) Munro
___
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 )


  1   2   3   >