Re: [Zope] Database connectors

2006-11-17 Thread Dario Lopez-Kästen
rieh25 said the following on 11/16/2006 09:12 PM:
 I wanted to do it because for some reason, my oracle connector (DCOracle)
 keeps disconnecting, and so I thought maybe it would be possible to define a
 python method to periodically check on it and reconnect it if necessary.
 

i one ancient app that i am trying to modernise, I have a python script
that gets called by wget with cron every N minutes. That script calls a
zsql that does a select from dual, and the script catches any errors.

The set up is a s follows:

* My site uses several DCO2 connections objects, one for each of a bunch
of schemas in the database. We serve the site in a cluster of 6 nodes
(using zeo - nothing fancy: 4 nodes from one machine, 2 nodes from
another machine).

* for various reasons, the connecions get dropped sometimes, and we need
to catch that and restart the affected node. Hence the scripts.

* All my DCO2 connection objects are at the root of the site, so they
are easy to acquire.

* in the root of the site, I have a folder heartbeat. That folder
contains one ZSQL method for each of the DCO2 connection objects, and
one Python script that is used to check one or all of the connections'
status.

The sql in the ZSQL methods is supersimple:

--begin sql--
select 'name_of_dco2_connection', sysdate from dual
--end sql--

and the Python script looks like this:

--begin script---
## Script (Python) index
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=name=None
##title=
##
 This script checks the status of connection 'name'. If 'name' is
None, check all connections

if name is None:
# Check all connections. Get list of zsql methods in
# the same folder as this script.
cobjs = [obj for obj in context.ZopeFind(container,
obj_metatypes=('Z SQL Method',))]
for o in cobjs:
# call each script: o[0] is the name,
# date is the result from the script
try:
sys, date = (o[0], o[1]()[0].sysdate)
print sys, str(date)
except ConflictError:
# apparently, ConflictErrors need to be passed on
raise
except Exception, Msg:
# oops, something Oracle-y messed up
print o[0], str(Exception), str(Msg)

# return the results
return printed

# try individual names
try:
# see if the connection exists (actually we
# check if there is a zsql named 'name'
con = container[name]
except KeyError:
print There is no connection named %s%name
return printed

try:
# found it, check it
sys, date = name, con()[0].sysdate
print sys, str(date)
return printed
except ConflictError:
# apparently, ConflictErrors need to be passed on
raise
except Exception, Msg:
print name, str(Exception), str(Msg)
return printed

# We shouldn't be here, so aliens must have
# hijacked us
print ALL YOUR BASE ARE BELONG TO US!
return printed
--end script--

I have cron job that calls a shell script that uses wget to call

www.insert your site here.com/heartbeat/index

that shell script compares the output from wget to decied if there is an
error or if the connections are ok.

If there is an error, we restart the node that had problems.


Hope this helps, it works for us :-)

/dario


-- 
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

___
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] building zope and plone behind apache2

2006-11-17 Thread Dario Lopez-Kästen
Allen Huang said the following on 11/17/2006 06:34 AM:
 I'm using a linux to run my plone and I wish to build it behind apache2.
 The documentation on the Plone site is for plone that are build behind
 apache2 on a Debian system. But I'm using a platform call Scientific
 Linux and I couldn't find a lot of folders and files mentioned in that
 documentation.
  
 What should I do now? Is running build building zope and plone behind
 apache2 same for all the linux system?

yes, the only differences are usually in where the config files are
stored and how the services start. The apache specific stuff should be
the same, or at least very similar.

/dario

-- 
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

___
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] Checking in pages, scripts, and sql methods to SVN

2006-11-17 Thread Dario Lopez-Kästen
Sinang, Danny said the following on 11/17/2006 01:33 AM:
 Hello,
  
 Is there a Zope product out there that would allow me to check into SVN
 my Zope objects (i.e. TAL pages, Python scripts, and ZSQLMethods) ?
  
 If not, can anyone here show me some skeleton code to :
  
 1. Enumerate these objects
 2. Reference them as files
  

if you are not using a too recent zope, you could use APE to mount a
filesystem based storage, and copy all your code there. APE will store
your code on the filesystem.

Then using either CMF, Plone or products such as FileSystemSite you can
create Filesystem Directory views that opens a readonly hole from the
zodb to the fielsystem.

Note that this is a somewhat messy one way operation; after succeeding
you should keep working on the filesystem, enjoy better editors and
source code control tools :-)

Hope this helps.

/dario


-- 
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

___
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] Database connectors

2006-11-17 Thread Dario Lopez-Kästen

-- 
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

___
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] Database connectors

2006-11-17 Thread Dario Lopez-Kästen
Dario Lopez-Kästen said the following on 11/17/2006 01:07 PM:
 Do you know these reasons?
 
 yes, we sometimes get deadlocks in the database, net outages and general
 misbehavior of DCO2. 

Sorry, i am casting too much blame on DCO2 here; in reality we have a
combination of zope2.6, large file uploads and downloads, not
necessarily good code on our end, AND quite a lot of DCO2 strangeness.

/dario

-- 
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

___
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-15 Thread Dario Lopez-Kästen
Chris Withers said the following on 11/15/2006 09:00 AM:
 But us going on like you obviously don't get it, do you? In fact, you
 dont seem to get anything about the web, even. Go away! 
 
 If that's true, then why not?
 

because it is not nice and we behave like them if we do? :-)

 either: instead of getting an enlightened zope user, we get yet another
 zope sucks-person with a bunch of misconceptions about zope out in the
 wild.
 
 Some people can't be helped...

well, we don't need more of them, so we should avoid that as much as we
can...

 Everybody needs to be treated with some degree of respect, and it's not
 
 Sorry, I disagree. Respect is a mutual thing.

oh, yes, but when someone solicits opinions and gets whacked in the head
 because we don't like his ideas, then it is us that lack in respect,
not them.

 Yes, in general, but in our case, I get the feeling that *anyone* that
 does not agree with the zope-philosophy, or questions the way zope
 works, gets a smack in the head. This is just the latest example.
 
 Nah, I don't agree, sorry. If that had been the case, how did Zope 3
 come into being? ;-)

Because Jim is not someone to get smacked in the head? :-)

 I am not trying to tell people how to behave, though, even if it may
 sound like it - I am just trying to point out some things about our
 attitude that we should be aware of as a community.
 
 I'd say, as a community, we don't tolerate fools lightly. I see that as
 a good thing...

It is a problem because that makes us stand out as bunch of ignorable,
elitist *ssh*les  to the world. That is not a good thing in my book.

YMMV.

/dario

-- 
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

___
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 Dario Lopez-Kästen
For the record: my original response was not aimed at you personally
Chris, it was just that your mail triggered the whole thing. I apologize
for making you the target (and for feeding some trolls :).

Chris Withers said the following on 11/13/2006 04:38 PM:
 
 Well, he's treating us like dirt, Dario. Rather than spending time
 helping to document Zope, he's gone off and built a wiki slating it.
 Thanks, but no thanks...

hm... ok, point taken. However: he is not treating us like dirt. Not all
zope-users have the historical baggage where zope gets treated like a
second class citizen in the Python community, usually with some gross
misconception about what zope does as a basis for that.

If he publishes a wiki with some misconceptions, so what? Will it have
more impact than all the other sites that don't grok zope and therefore
dismisses it? No, probably not.

But us going on like you obviously don't get it, do you? In fact, you
dont seem to get anything about the web, even. Go away! is not the way
either: instead of getting an enlightened zope user, we get yet another
zope sucks-person with a bunch of misconceptions about zope out in the
wild.

I am not defending his misconceptions (if there are any - i haven't
spent much time reading his wiki, really) and I generally agree that
spending time thinking about a fork is futile. I somehow can understand
his position, though, having rewritten some of our systems based on what
they should do, instead of trying to understand the original spaghetti
code (but my code is nowhere near the complexity of Zope, on the other
hand).

Nevertheless, I think we as a community could show some class and style.
Everybody needs to be treated with some degree of respect, and it's not
like he's going to write a zope fork, in real life; and so what if he
did, if it was better, then we could probably learn something, if it
isn't better, nothing will have changed for us.

 This certainly isn't the case. People who expect their work to get doen
 for them for free will get a hard time. I'd suggest that people who come
 with particularly unconstructive approaches to how zope may be improved
 will also come in for a similarly hard time...

Yes, in general, but in our case, I get the feeling that *anyone* that
does not agree with the zope-philosophy, or questions the way zope
works, gets a smack in the head. This is just the latest example.

I am not trying to tell people how to behave, though, even if it may
sound like it - I am just trying to point out some things about our
attitude that we should be aware of as a community.

/dario

-- 
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

___
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 Dario Lopez-Kästen
michael nt milne said the following on 11/14/2006 10:59 AM:

 You make some very valid, correct points but then also make a very
 incorrect assumption as well. I don't believe the original poster is a
 troll and neither am I or anyone else who has agreed that this list
 needs to have some more class and enlightenment.

agreed, but I meant this jokingly, and besides: perhaps we *all* could
characterise ourselves as trolls we when spend 8 more or less
consecutive mails on the list for name calling of various sorts :-)

/dario

-- 
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

___
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-13 Thread Dario Lopez-Kästen
Chris Withers said the following on 11/13/2006 12:11 PM:
 Hafeliel wrote:

 If you could, please take a moment to surf on over to
 http://zopereplacement.wikidot.com/
 
 http://en.wikipedia.org/wiki/Internet_troll
 
 http://www.urbandictionary.com/define.php?term=numpty
 
 Try doing a bit more digging before wasting your time writing this rubbish.
 
 I suggest you take a good long hard look at Zope 3, read the 2 books,
 and then come back...

yeah, I can see how this kind of attitude draws lots and lots of new
followers to zope.

Sure, the man might be mistaken and misinformed, but  if it is hard to
understand the tool, maybe some docs or references might be in order,
thoughI fail to see anythign zope related in
http://en.wikipedia.org/wiki/Internet_troll unless we mean to describe
the attitude towards criticism we/some of us don't like (like to deal
with?).

I am sure that treating him like dirt under our shoes will help improve
his perception of zope and why it is such a wonderfull tool.

I am not sure, however, that the zope community needs this kind of ad
hominem argumentation (http://en.wikipedia.org/wiki/Ad_hominem) towards
any and all that raise any kind of issue with zope.

Whatever.

/dario

-- 
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

___
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 2 for Windows

2006-10-13 Thread Dario Lopez-Kästen
michael nt milne said the following on 10/12/2006 01:33 PM:
 No I get your point. I just feel that anti-windows feeling has to be
 flagged up. If not it gets endemnic and hopefully occasional pointers
 will feed in organically. Ultimately in OSS though people will do what
 they want and that is also part of the value. Finally I don't think I am
 'whining' on this.
 

there is no anti-windows feeling, even if some people make snug remarks
about windows. There is a lack of windows-savvy developers that have
time and resources to maintain the windows builds.

However, that is a totally different issue, and your attitude does not
help.

So, if there are some souls here on this list that are less than
pleasant at times (yeah, you know who you are :-), then by all means
show some class and do not try to behave like them.

so, to repeat: there is no anti-windows conspiracy, just an unfortunate
lack of windows-savvy developers (I'll have to add that can afford the
ms development tools ;-).

my 2 eurocents.

Cheers,
/dario
-- 
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

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


Re: [Zope-dev] Re: Future of ZClasses

2006-10-03 Thread Dario Lopez-Kästen
Lennart Regebro said the following on 10/02/2006 11:16 AM:
 On 10/2/06, Olavo Santos [EMAIL PROTECTED] wrote:
 Many deprecation sign for any user are clearly signs that Zope
 developers are unable to maintain certain Zope features.
 
 No they are not. 

Technically that is correct.

Socially, as in how others, eg,. mere users an developers of zope-based
applications *perceive* things, then it may very well be as Olavo S
puts it.

Especially when it comes to strategic decisions, eg. choosing
development platform.

I have no solution on how to solve this problem, though, but I think
we should be aware of it.

/dario

-- 
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

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


[Zope-dev] Apologies for slowing down svn

2006-09-25 Thread Dario Lopez-Kästen
Hello,

uh... I just realised that I have messed up. I was going to co the Zope2
trunk but after wondering why it never finished, I discovered that I
somehow managed to co *all* of zope2, including all the branches, etc. :-P

I am not doing that any more. I apologise for any incovenience this may
have caused during the past 20 minutes. I am not sure it has but, just
in case...

/dario

-- 
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

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


[Zope-DB] Add some docs to DCOracle2

2006-05-12 Thread Dario Lopez-Kästen
hi, i'd like to add some docs to DCOracle2, nothing fancy but that make 
life easier for those still needing to use DCoracle2.


Can I post the docs here when they are finished, and can someone add the 
to the CVS?


Thanks,

/dario

--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

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


Re: Give it a rest + answers. (Re: [Zope] Re: Zope + Apache on Quad Debian machine)

2006-03-22 Thread Dario Lopez-Kästen

Jeff Donsbach said the following on 2006-03-21 17:26:


Dario,
Do you have any kind of comparison numbers of using CPU affinity
vs not for your particular case? Also, are you using ZEO or not?  It's
not that I don't believe you when you say it matters a lot for you. I
do believe you. Like Tino, I'm just generally interested in how much
it matters in measurable terms. I can imagine there are a number of
factors determining how much it matters, like Zope app/workload as
well as the underlying hardware architecture (how big of a penalty is
it to synchronize cache pages between CPUs) and the OS CPU scheduler
as Tino mentioned.


To be honest, we have never had the inclination to do much of research 
in this area. Our situation has mostly been such that we experience 
horrible delays in zope-responsiveness in testing that vanish as soon as 
we use taskset. This is on both Solaris (with the equivalent of taskset 
there) and Linux .


Since then (and for other reasons), we have migrated all of the central 
servers we manage from Solaris to Linux, so I cannot give any more input 
about Solaris.


Yes, we use ZEO almost exclusively, it is realtively easy to setup even 
fpr development and we don't deploy without ZEO anymore. It makes a fair 
bit of improvement as well.


We have an app (the one that tooks us on the road to zope) that for 
various reasons has not updated properly since 2002 when we first had 
our multicpu experiences.


This particular app receives quite a bit of load, and since it is built 
entirely thru the web with by now age-old DTML and 
ye-olde-zope-techniques, it is not the speediest in the world. Add to 
that the fact that we use DCOracle2(*) to do Oracle queries, and we 
sometimes expericence hangups on the ZEO clients.


For this app, we have successfully delayed it's demise and avoided 
total chaos by adding more ZEO clients (at the moment, these clients 
runt on two machines, four processes on one and two processes on the 
other). Well, we also have scripts that restart the nodes when the leak 
memory too much, and so on. BUT: the speed of the app has increased with 
each node we add.


I am sorry that I cannot give more numbers - I hear from the traffic on 
the list that there are other factors involved nowadays that may in some 
way obsolete the need to bind to a particular CPU, however I do not 
understand how this can have an impact on the GIL.


Let me be the first to admit my total lack of knowledge of kernel task 
schedulers, but generally speaking, unless the scheduler makes sure that 
a threaded python process never ever gets distributed over two 
processors simultaniously,  then the GIL *will* be an issue.


In any event, I'd love to be proved wrong about the need for taskset 
(especially if someone comes up with measurable data to that effect) 
because it means that my sysadmins can simplify their setup for managing 
Zope (making Zope even more acceptable :-).


Cheers,

/dario

(*) We have not been able to use the versions of DCOracle2 that ChrisW 
has worked on, because we expericend nother set of problems with them 
and we never had the opportinuty to really spend time chasing those 
bugs. I believe ChrisW's DCO2 does solve some of the issues that the 
original DCO2 has


Please note that the problems we had with it, may very well becasue of 
our particular setup (Oracle 8, bad code in our app, even worse sql, 
etc). I have heard that for other people Chris's DCOracle2 versions work 
better than the non-modified DCO2, so YMMV.


--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

___
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: Give it a rest + answers. (Re: [Zope] Re: Zope + Apache on Quad Debian machine)

2006-03-22 Thread Dario Lopez-Kästen

Chris Withers said the following on 2006-03-22 01:36:

Dario Lopez-Kästen wrote:

Dario, I actually think your comment here is a bit out of order if 
you're referring to this post of mine:


http://mail.zope.org/pipermail/zope/2006-March/165574.html



yes, it was and I apologise for it, you did point to relevant 
information and I was unfair towards you.




In all fairness, the quality of newbies was better back then. Too many 
people come to this list nowadays asking about stuff without bothering 
to do any research and often asking about Plohn, whereas their own lists 
would be much better...


They then get arsey because people won't bend over backwards to help 
them answer the same question they asked before, even though they're not 
even paying the people they're expecting to help them.


Unfortunaltey, that is the ways things work, and I think we all have to 
prepare to be nice to those newbies too. Back then, when we are a select 
few that used zope and zope was not so on-topic as it is today, the 
ones that were on the list were interested in Zope-the-technology and 
thus could ask sensible questions.


Generally speaking, with the growing poularity of Zope-solutions, where 
Plone and CPS being popular solutions more or less hide the technology 
behind, we get a bunch of people that do not necessarily care about the 
technology behind plone/cps, they just wnat things to work.


Also, especially having the marketing zope discussions happening on 
other lists, we need to come to terms with the fact that zope does not 
exist in isolation from it's environment. Questions on the general Zope 
list about issues and successes in deploying Zope, Zope performance 
*ARE* legitimate questions on the list.


Even if the real answer is it's a python thing. If folks don't care 
for politeness and a will to help users, then they should see it as a 
technical issue. Zope is probably the largest Python Threaded app there 
is at the moment (perhaps the largest Python app, period?) - Zope has 
lead to bugs being discovered in Python that get fixed in newer Python 
releases.


So, questions and issues about threaded Pytohn apps are very likely  to 
be related to Zope, and shoudl not be dismissed ad-hoc-ly, in spite of 
the answer being google is your friend: zope+multi+cpu


enough sleep, yada, yada, yada... I fail to see how that is a newbie's 
fault, so no need to take it out on them.


It's a two way street...


Indeed, and in hindsight, I guess I reverted to this behaviour as well 
:P. Sorry about that.




http://www.zope.org/Members/glpb/solaris/report_ps



Having chatted with both the author and the researcher of that paper, I 
don't remember the results being as clear-cut as you imply ;-)




having experienced this first hand, before the paper arrived (and it did 
help me find the solution), I think I disagree :-)


Still, had Hugo bothered to do even some cursory googling, would he not 
have found all that information?


http://www.google.co.uk/search?q=zope+multi+cpu


I guess he was under the wrong impression that the zope-list was a 
friendly and safe place to ask questions and get community support :)


Joke aside, yes, he would have found the answer probably, but we cannot 
expect all netizens to be civilised and know proper behaviour. I think 
Checkov (or someone) said something along the lines of good table 
manners is not to not spill sauce on the table, but to not notice when 
someone else does.


I think we could do with something similar about netiquette.

Regarding all other advises you have gotten so far (get more memory, 
look at your disks, get a life, etc), I am sure that they have merits, 
but as far as I can see, they don't actually solve anything at all.



I think you're stepping outside the bounds of reasonable argument here...

The other advice, in fact, more often than not, has more impact on more 
zope installations...




I'd love to see more data and less opinion about this - and no, I am not 
being sarcastic here. If we can avoid taskset then the setup is *way* 
simpler for our sysadmins, so I have a real interest here.




Actually, most people run multiple zeo clients on multi-processor boxes 
and let the native task scheduler do the right thing. For most 
people this seems to work just fine...




See above.

/dario

--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

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


Give it a rest + answers. (Re: [Zope] Re: Zope + Apache on Quad Debian machine)

2006-03-21 Thread Dario Lopez-Kästen

Martijn Pieters said the following on 2006-03-16 12:25:

On 3/16/06, Tino Wildenhain [EMAIL PROTECTED] wrote:


Hey... but thank you Jens for spending all that time writing an email
that doesn't help any1 at all...!!!


check google for multiple use of exclamation marks.



Or look up Terry Pratchett quotes on www.lspace.org:


snip

Martinj, Chris and others giving nonsential answers: Don't you guys have 
work to do instead of playing bullies on the newbies?.


To be honest, I find arrogant and pointless answers like yours way more 
annoying than a whole bunch of newbies asking more or less cluess questions.


I see a lot of this newbie bashing increasing; in fact it has been some 
years since the zope list was a good example on how to treat newbies 
politely and point them to the prope answers.


Sure, we all have loads of work and are way too stressed, we don't get 
enough sleep, yada, yada, yada... I fail to see how that is a newbie's 
fault, so no need to take it out on them.


For the benefit of all those that have tiny, tiny memory spans, the 
question of Zope's processes necessity to be CPU-bound is a horse that 
was resolved a couple of years ago (2002). It turns out that it is not a 
Zope problem (Oh, the Horror. He's bringing a non-zope question to the 
list!).


It is pythons fault, if you are grumpy old fart, or it is a feature 
if you are having a good day.


The need for threaded python processes to be CPU bound (yes, Zope is 
threaded, in case you have forgotten) arises from the fact that python 
has the GIL (Global Interpreter Lock).


For background see:

http://www.zope.org/Members/glpb/solaris

and

http://www.zope.org/Members/glpb/solaris/report_ps

As far as I know, the GIL is still there and won't go away any time 
soon. Today, the only change from 2002 is that there is a heck of a lot 
more multi-CPU machines than there were back in 2002.


So, to make a long story short: on linux there is a userspace tools 
called taskset:


http://linuxcommand.org/man_pages/taskset1.html
http://aplawrence.com/Basics/taskset.html

if there is no such command for your particular distro/kernelversion, 
look no further than:


http://directory.fsf.org/all/schedutils.html
http://rlove.org/
http://rlove.org/schedutils/
ftp://ftp.kernel.org/pub/linux/utils/util-linux/

I cannot tell you wich version to use, but I think you get the idea. I 
do believe that some distros allready include taskset in them.


So you have to write a wrapper script around zopectl (you are running a 
newer versionof zope, aren't you?) where you do this.


It has worked like a charm for us since 2002 (well, almost - since 
schedutils were new and cool back in 2002 we had regular fights with the 
sysadmins guys regarding the need to introduce 
non-redhat-aproved-kernel-hacks into the production systems. Nowadays 
taskset and related tools are included in the later RHE releases).


Regarding all other advises you have gotten so far (get more memory, 
look at your disks, get a life, etc), I am sure that they have merits, 
but as far as I can see, they don't actually solve anything at all.


The fact that the issue of the GIL is not more prominent in the Zope 
worlds, I think is because relatively few zopistas are aware that there 
is a problem; mostly, because not so many run multicpu-boxes in 
production, and also because of attitude, I suppose: since I don't have 
a problem with it, I don't care about it, and I'll inform you so.


/dario - yes... a bit annoyed at all the help some folks give...

--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

___
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: Give it a rest + answers. (Re: [Zope] Re: Zope + Apache on Quad Debian machine)

2006-03-21 Thread Dario Lopez-Kästen

Tino Wildenhain said the following on 2006-03-21 14:51:


Otoh, I have yet to see the figures showing the CPU afinity
buys you anything in reality. We know the GIL, thats for sure
but I never saw a measureable difference binding a process
to a CPU (which is also highly depending on the OS scheduler)



for us, it makes all the difference between zope sucks, why do we 
bother with this non-sense, non-standard, butt-slow appserver, and use 
Java or PHP instead and nice, zope based solutions are really nice, 
not only feature wise, but also speedy. And they are clusterable too, neat!


/dario


--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

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

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


[Zope-dev] Re: [Zope3-dev] Two visions

2006-02-27 Thread Dario Lopez-Kästen

My 2 EuroCents:

Vision 1 is, I think what is happening at the moment for pragamatic and 
practical reasons. Drawbacks of this is that we loose the ZopeX3 
(Zope3X?) vision of cutting loose from old burdens and take off to new 
horizons.


Vision 2, on the other hand (at least to me in my 
not-really-started-with-z3-development-yet situation), is a lot more 
appealing for a variety of reasons, not the least that choosing working 
development model (zope2 and zope3 for starters, there may be others) 
becomes a configuration(*) issue.


The potential benefits of this approach are very appealing (almost like 
eating the cake and still having it :), so I vote for vision 2.


/dario

(*) Configuration in a broad sense: mind model, conf-files, development 
model, etc...

--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

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

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


[Zope-dev] Re: [Zope3-dev] Re: Two visions

2006-02-27 Thread Dario Lopez-Kästen

Max M said the following on 2006-02-27 17:26:

Jim Fulton wrote:


2) In an alternate vision, Zope 2 evolves to Zope 5.



Zope 2 is complicated! It has too many layers of everything.



read the full sentence that Jim wrote:

 2) In an alternate vision, Zope 2 evolves to Zope 5.

...

  Note that Zope 5 will leverage Zope 3 technologies to allow a
  variety of configurations, including a Zope 2-like configuration
  with implicit acquisition and through-the-web development, and a
  Zope 3-like configuration that looks a lot like the current Zope
  3 application server.  Maybe, there will be a configuration that
  allows Zope 2 and Zope 3 applications to be combined to a
  significant degree.

In this scenario I cannot see how much of the old ways of zope2 remain 
(unless I have a totally unrealistic view of what Jim proposes). zope 2 
or zop3 become an issue of configuring which components/parts to use.


/dario

--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

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

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


Re: [Zope] Re: major problems placing authentication on an extranet site-security flaw?

2006-02-14 Thread Dario Lopez-Kästen

michael nt milne said the following on 2006-02-14 12:30:

 As for the issue with IE6 and editing pages over SSL it all works fine
 in Firefox 1.5, so it's a browser issue which I just can't quite
 fathom just now.


 I doubt it, my guess would still be that you're doing something wrong
somewhere...
 
 Sorry but I don't agree on this one. I haven't altered any of the 
Plone 'edit page' functionality. It's out of the box. Works fine without 
SSL but on SSL trying to edit a page causes 'can't find server'. Firefox 
though works perfectly viewing and editing so it's a browser issue. I 
know of other people who have issues with IE and posting images over 
SSL. Must be something to do with POST security over IE. I'm going to 
take it up with them but don't expect too much of a response. I'm now 
about to try with Opera.


This part is *only* about setting up the servers, apache and zope in 
this context, properly.


There is nothing in Zope that works differently when serving over ssl or 
not. SSL is just a transport layer, so it does *not* affect 
zope-capabilities in any way.


I am sure you know this, but since we have learned very little (or at 
least I have - maybe I am not paying attention well enough :-):


*HOWEVER*, IIRC, plone, especially on windows (if installed with the 
windows installer) uses a trick, which is not documented at all, as far 
as I know, uses a Site Access rule.


Have you modified that rule to take advantage of the SSL -server? 
Perhaps the SiteAccess rule is triggering adn trying to redirect you to 
an address/port where there is no service listeing?


/dario

--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

___
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: major problems placing authentication on an extranet site-security flaw?

2006-02-14 Thread Dario Lopez-Kästen

Alexander Limi said the following on 2006-02-14 14:05:



On Tue, 14 Feb 2006 04:59:07 -0800, Dario Lopez-Kästen  
[EMAIL PROTECTED] wrote:


*HOWEVER*, IIRC, plone, especially on windows (if installed with the  
windows installer) uses a trick, which is not documented at all, as 
far  as I know, uses a Site Access rule.



http://plone.org/documentation/faq/multiple-sites-installers

What part is not documented at all? :)



ähh... woopsy-daisy! my mistake. Sorry! 8^)

/dario - crawls back under a rock... ;)

--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

___
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: major problems placing authentication on an extranet site-security flaw?

2006-02-13 Thread Dario Lopez-Kästen

Chris Withers said the following on 2006-02-12 15:27:


Given your earlier paranoia about security


uh, us security nerds^H^H^H^H^H^H 
folks-who-have-an-strong-interest-in-security, actually prefer to call 
it eagerness. Paranoia has such negative timbre, don't you think? :-)


Nevertheless, it is not simple to implement proper security with 
cookie-based logins. I had to make my own hacked version of 
SinmpleUserFodler with seesioning on the zeo server to get it secure 
enough (it is actually a trade off from what I would have liked to have 
in the first place, but it works ok).


Cheers,

/dario


--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

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

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


Re: [Zope-dev] Inhibit URL-traversal

2006-02-12 Thread Dario Lopez-Kästen

Dieter Maurer said the following on 2006-02-10 19:48:

Dario Lopez-Kästen wrote at 2006-2-10 10:56 +0100:

...
for a product I am writing, i need to experiment with inhibiting 
URL-traversal to the methods and subobjects of it. I still wnat the 
methods and objects to be available via direct call, for instance:



You can use a SiteAccess AccessRule for this.

Be warned, however, that AccessRules can be disabled
in the URL (by a few knowing people). If this concerns you,
can can remove this feature from AccessRule (code modification).



Using an AccessRule is not precisely what I had in mind - I want my 
product to behave in such a way by itself - but looking at how 
AccessRules work will surely give me some insight. Thanks for the pointer.



...
Also, can such a behaviour be imposed on templates (they being methods 
really) and Script(Python)s?



It can -- with some difficulties:

  Templates and scripts are called because they define
  index_html as None.

  If you give a template or script a non-None index_html,
  then this object will be called instead of the template/script.



I see. Is this possible to do on FS-based scripts/templates? I believe 
zodb-based files may be manipulated at install-time by my product, by I 
am not sure how to do this for FS-based stuff.


Anyway, thanks Dieter for the pointers. This will get me started :-)

/dario

--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

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

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


[Zope-dev] Inhibit URL-traversal

2006-02-10 Thread Dario Lopez-Kästen

Greetings,

for a product I am writing, i need to experiment with inhibiting 
URL-traversal to the methods and subobjects of it. I still wnat the 
methods and objects to be available via direct call, for instance:


from a script or template:
container.my_product_instance.some_method(...)

but not

http://some/url/my_product_instance/some_method?...


In effect I am hiding that part of the zodb for external access-

Also, can such a behaviour be imposed on templates (they being methods 
really) and Script(Python)s?


Thanks,

/dario

--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

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

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


Re: [Zope] Zope vs Plone: performance issues!

2006-01-25 Thread Dario Lopez-Kästen

Hugo Ramos wrote:

Well... They were already using Zope's cache and Squid to proxy some static HTML
I guess the problem is Plone itself... Skins etc...



eh, sorry for probably stating the obvious. you menationed in an earlier 
mail that you have good hardware. If this hardware is multi-cpu then I 
suggest that you use some tool (i.e. taskset on linux) to bind each zope 
python process to a single cpu.


Threaded python applications does not work well in multi-cpu settings 
where there is a chance of a threaded python process being spread out 
over more than one CPU. I causes a, sometimes signinficant, performance 
loss.


Just by binding the zope python processes to a single CPU (not 
necessarily the same, just make sure that any single python process is 
not spread over more than one CPU) you will notice a preformance increase.


And like all the others said, Caching is you friend. Start by checking 
the ZODB cache numbers in the zope-conf file (too start simple). IIRC, 
the default is 5000 objects. Increase that to, say 50.000 or so (you 
mention that you have a busy site).


Good luck.

/dario

--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

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

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


[Zope] Re: Zope vs Plone: performance issues!

2006-01-25 Thread Dario Lopez-Kästen

Subject: Re: Zope vs Plone: performance issues!
Alexander Limi wrote:



On Wed, 25 Jan 2006 00:11:04 -0800, Dario Lopez-Kästen  
[EMAIL PROTECTED] wrote:


Start by checking the ZODB cache numbers in the zope-conf file (too  
start simple). IIRC, the default is 5000 objects. Increase that to, 
say  50.000 or so (you mention that you have a busy site).



Sorry, but this is not good advice. 5000 objects in the cache is 
normally  plenty, and you should look into caching the front-end before 
you even  consider this. 50K objects in the cache will eat *a lot* of 
memory, and  most likely cause swapping.


Cache properly with Apache or Squid in front first, then investigate 
the  more complex settings.




Does this apply for personanlsied content as well? Remember, his site is
 an intranet.

We at least, have had good results by increasing the internal ZODB
caching. I fail to see how squid could help us with a site that is
mostly non-static. It would be nicer of course if we could use some
other kind of caching, so I am always open to suggestions :-)

/dario

--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley
___
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] Products have incorrect home attribute

2006-01-17 Thread Dario Lopez-Kästen

George Lee wrote:

After migrating to a new server, several of my Zope products have an
incorrect home attribute that specifies where they live on the
filesystem. However, when I try to change these attributes using an
external method, the attributes do not change. Any help?

Peace,
George


I dunno if this relates to your specific case (and apologies for perhaps 
stating the obvious). Did you delete the *.pyc files after moving the 
products?


pyc files contain information about their paths, and they do not get 
recompiled if their source file is unchanged.


hth,
/dario

--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

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

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


Re: [Zope-dev] Re: [RfC] Removal of old stuff in Zope 2.10

2005-12-22 Thread Dario Lopez-Kästen

Rocky Burt wrote:


Well, if we simply suck sqlite in as a build time requirement (during
the 'make' process) do we care about importing non-ZPL code into
svn.zope.org?  We would only care about licensing when distributing
binaries that include sqlite, no?



will this imply that I need to have an internet connection to 
make/install zope3 from checkouts?


/dario

--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

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

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


Re: [Zope-dev] [RfC] Removal of old stuff in Zope 2.10

2005-12-21 Thread Dario Lopez-Kästen

Chris Withers wrote:

Andreas Jung wrote:


I've never met ppl who actually used the HelpSys so that's why I am 
raising the question about the value of the HelpSys. Lots of my 
co-workers work with Zope on different levels (scripters, product 
developers)...I've always pointed them to the Zope Book...the HelpSys 
was never a topic.



I most commonly use the HurtSys for DateTime's api, and some of the 
idnexing apis. That said, I also agree it should die if something nicer 
comes along ;-)




I use it a lot, and like Chris, for the DateTime stuff, but also for 
looking up how to manage properties, etc. It is/was a big help for me 
(more so than the zope book, at least when I was learning Zope) when 
learning stuff and looking up things.


One difference I perceive (YMMV) between the Zope book and the Online 
help is that the online help is more of a renference than the Zope book.


I think my point is that it is an added value if there is an online help 
available that does not require a live connection to the internet every 
time you need to look something up.


So +1 on killing the current helpsystem and +1 on replacing it with 
something nicer :-)



Sincerely,
/dario

--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

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

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


Re: [Zope-dev] zope-2.9 r40780 make install doesn't finish, files missing from bin

2005-12-21 Thread Dario Lopez-Kästen

Jens Vagelpohl wrote:


On 21 Dec 2005, at 18:47, Jim Fulton wrote:


I'll note, FWIW, that we don't do installs from Zope 3 checkouts.
I think it's worth asking whether this is an important requirement.
If it is, then we should make it work.  Question is, is it worth
delaying the release?  I don't know.



IMHO it is an important requirement. We're inviting a hailstorm of  
questions and annoyed users by breaking this well-known routine for  
checkouts.


I really think there is not a single good reason for having a  different 
experience for checkouts vs tarballs. It would even lead to  major 
annoyance where I work right now, just to give a real life  example. For 
us, building out a development sandbox is the same  process as building 
out a production instance, and for development  buildouts we routinely 
want to just substitute checkous from a  different tag/branch of Zope.




+1 on this.
It is important for us in the forced to be both developer and deployer 
by evil sysadmins camp.


/dario

--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

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

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


Re: [Zope-dev] Please vote about conflict errors logging

2005-12-06 Thread Dario Lopez-Kästen

 1. Do you want these ConflictErrors retried logs to be at level:

INFO

 2. In addition, please specify if you feel those retried
 ConflictErrors should have their full traceback logged?

no traceback

 3. Finally, please tell us if the ConflictErrors that *can't* be
 retried (and are returned to the user as an error, and are also
 logged to the error_log) should be additionally explicitely logged to
 the event log, and at which level:

Yes, at ERROR level

/dario

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

--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

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

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


Re: [Zope] Re: Python Classes and Zope.

2005-12-06 Thread Dario Lopez-Kästen

Florent Guillaume wrote:

Paul Winkler wrote:


On Fri, Dec 02, 2005 at 04:12:01PM +0100, Jean-Marc Orliaguet wrote:

does zope2 do an access control based on acquisition for public 
methods, that would be a waste of resources since the answer is 
always yes, granted ?


Well, the thing is, the declaration that makes the method public
*has no effect* unless your class participates in acquisition.



That's not true. The objects of this class will be perfectly accessible 
to a restricted user:


  from AccessControl import ClassSecurityInfo
  class MyStuff(object):
  security = ClassSecurityInfo()
  security.declareObjectPublic()
  security.setDefaultAccess('allow')
  def foo(self):
  return 'bar'
  InitializeClass(MyStuff)



In Zope 2.7.8 I get a segmentation fault when I try to do the above; I 
also have the following code that manages this for any class (to avoid 
having to do that for every single class):


def _ZopifyClass(a_class):
a_class.security = ClassSecurityInfo()
a_class.security.declareObjectPublic() # Segmentation fault
security.setDefaultAccess('allow')
InitializeClass(a_class)

I cannot swithc to Zope 2.8 because my code runs in PLone 2.05 and it 
does not work with Zope 2.8.


The segmentation fault occurs in the declareObjectPublic() statement.

Is there a fix for the Zope 2.7 to this problem?

Thanks.

/dario
--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

___
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: Python Classes and Zope.

2005-12-06 Thread Dario Lopez-Kästen

Jean-Marc Orliaguet wrote:


is it a typo, or did you mean:

a_class.security.setDefaultAccess('allow')



it is a type and I do mean a_class.security.setDefaultAccess('allow').

/dario

--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

___
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: Python Classes and Zope.

2005-12-06 Thread Dario Lopez-Kästen

Jean-Marc Orliaguet wrote:

that's because it does not seem to work with new-style python classes in 
zope2.7


it works with:

class MyStuff:

  instead of:

class MyStuff(object):

This is what you would have got:

 File /opt/Zope-2.7/lib/python/AccessControl/SecurityInfo.py, line 
165, in apply

   dict['%s__roles__' % name] = access
TypeError: object does not support item assignment

if you'd run it without the extra call.

now, the question is if it's worth the extra effort.


aha!; thanks for the explanation.

Well, as you know, we have not officially gotten so far with 
implementing new style class features on our base classes (that is, 
unless you have checked in som extra code lately that relies on NSC)


Considering the time frame we are living with - yes, not using NSC is 
definitely the way to go for now, until I have time to upgrade to Plone 
2.1.1 and Zope 2.8 or 2.9.


Thanks!

/dario

--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

___
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] Python Classes and Zope.

2005-12-01 Thread Dario Lopez-Kästen

Andreas Jung wrote:



--On 1. Dezember 2005 13:46:55 -0200 Fernando Lujan 
[EMAIL PROTECTED] wrote:



There's a way to use a Python class inside zope?

For instance, if I create the class:

class MyClass:
 A simple example class
 i = 12345
 def f(self):
 return 'hello world'

Can I invoke the following code inside a Python Script?

x = MyClass()
x.f()



PythonScripts are for *scripting* not for implementing complex
logic and for programming tasks that require classes. PythonScripts 
don't provide full Python functionality that why were are talking of 
*Restriced Python*. Consider writing your functionality as Python product.


all moral lessons aside, there are several use cases where access to 
*objects*, passed to zope2 from external packages and modules, is desirable.


Most, if not all examples, out there assume that the external 
packages/modules/classes can freely be converted to Zope-classes.


Now, assuming that I have not missed something fundamental, the problem 
the way I see it, is that when my Product recieves an object from the 
non-zope code, the object does not know anything about Zope, it is just 
a happy Python-object.


But in order to even display it in a zpt I must transmogrify it into a 
special zope-object, and *that* is not so easy as I have discovered.


In my case I am not so interested in importing the moduels or classes 
into a Script(Python) - I have allready passed the objects in question 
thtough my product, but still I get some Zope Does Not Allow That error.


So far I have not had any success with anything else than writing 
special methods in my Classes that converts the objects to dictionaries 
before passing them to the zpt or Script(Python) in question.


But that feels like a very awkward way of doing things, and it makeas it 
*very* difficult for Zope to be a nice player with non-zope objects.


My 2 €-cents worth.

/dario


--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

___
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-PAS] Installing Plone PAS in Plone site overwrite base acl_users and sites acl_users

2005-11-14 Thread Dario Lopez-Kästen

Sidnei da Silva wrote:
On Mon, Nov 14, 2005 at 12:54:50PM +0100, Dario Lopez-Kästen wrote: 
| Does this mean, that in any Zope ZODB where I have such a Plone 
| instance, the Plone instance imposes it's acl_users on the ROOT of the 
| Zope install?


No, PlonePAS migrates the acl_users on the 'first found above' to be a
compatible PAS acl_users setup, with existing users migrated, only if
it's a standard 'User Folder'.


caveat, I am not into PAS yet, I am only following the discussion for 
fuutre work, so I may not be understanding corretly how PAS works:


first found above sounds like it is the Zope-root in a normal Plone 
install: ie. / is the zope root, where there is an acl_users. /Portal is 
the Plone default install. /Portal/acl_users is the non-pas location of 
a user folder if one creates one at or after creating a Plone Site object.


first found above means... /Portal/../acl_users -- /acl_users?

Or does first found above mean /Portal/acl_users ?

Assuming, I have understood this correclty, if there is no 
/Portal/acl_users, then I can understand that there logically is no 
other user folder than /acl_users to PAS-ify... but that  is, imho, 
perhaps a bit too invasive - better to offer the user an option to 
create a new PAS-ified acl_users at /Portal level rather than silenlty 
PAS-ify the root acl_users.


We have all learned that replacing the root acl_users is generally not a 
good idea, so doing this semi-silently is perhaps a bit premature. Until 
Zope ships with PAS as the default user folder implementation, replacing 
root user folders should be treated as a special case that is to be 
avoided and alternative options should be offered.


Apologies if I am misunderstanding everything and wasting bandwith.

Sincerely,

/dario

--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

___
Zope-PAS mailing list
Zope-PAS@zope.org
http://mail.zope.org/mailman/listinfo/zope-pas


Re: [Zope] Re: Zope 2.8 or 3.1?

2005-10-29 Thread Dario Lopez-Kästen

Alexander Limi wrote:

On Fri, 28 Oct 2005 13:58:31 -0700, Peter Bengtsson  
[EMAIL PROTECTED] wrote:



Can I humbly recommend that you don't reinvent the wheel and have a look
at

www.issuetrackerproduct.com

It's really good for QA and general problem reporting.



Everybody wants to write their own issue tracker (and in the later 
stages  of this syndrome, their own project management software), as 
you are well  aware of. ;)


Yes, well, after all, this *is* zope and python. The There should be 
one-- and preferably only one --obvious way to do it. slogan applies 
only to language syntax and features.


Now, stuff created *with* the language - well, *that* is a *totally* 
different matter...


*wink*

/dario

--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley


___
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] passing the parameters to zsql method

2005-10-27 Thread Dario Lopez-Kästen

Denis V. Gudtsov wrote:


form action=clients_add_sql
input type=text name=name
input type=text name=account
input type=submit
/form

clients_add_sql:
insert into table(name,account) values (dtml-sqlvar name type=string, 
dtml-sqlvar account type=string);

the problem is when i click the 'submit' button, the form
clients_add_sql Input Data Enter query parameters: appears.

Does someone know how i can pass the form parameters to zsql method
directly?
 



use an intermediary Script (Python), ie:
---
# extract data from form and put into zsql-method.
request = continer.REQUEST

name = request.form.get('name', None)
account = request.form.get('account', None)

# Sanity check - do we have values?
if name and account:
 # assume that the zsql-method is in the same folder as this script
 container.clients_add_sql(name=name, account=account)

 # if the zsql is not in the same folder as this script, use aquisition
 #context.clients_add_sql(name=name, account=account)
---

As you can see, introducing a script in between has other benefits as 
well, such as allowing for data verification etc.


to call the script change:

form action=clients_add_sql

to 
form action=the_name_of_your_script_goes_here



hope this helps.

/dario

--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley


___
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 2.8 or 3.1?

2005-10-27 Thread Dario Lopez-Kästen

Jens Vagelpohl wrote:



On 26 Oct 2005, at 21:43, HaraldFinnås wrote:

I've also seen comments that running Zope on RHEL/CentOS might not  
be wise. My test env. is using FC4, but I'm planning to install  
CenOS 4.2 on the production server. Unwise choice?



I'd be curious to find out who says something like that. It's BS.  
Zope runs perfectly fine on all RHEL-based distributions.


The only issues you might ever run into would be problems with the  
Python that comes with the OS. But then again if you run Zope in  
production you should never ever use the system Python and build your  
own instead. The system Python tends to be compiled with weird flags  
on RH-based distros to suit their own needs for the many Python-based  
scripts they have in the OS. Don't use it, build your own.



well, on larger shops like ours, the sysadms always want to know why we 
introduce Yet Another Non-Standard Component to the system setup that 
cannot be RPM'ed like the rest. And I am not talking across pythoin 
versions, but oin the same release series (ie. 2.3, etc)


I know it is more convenient to self.compile()  the python, but it is 
always hard to argue with the sysadms on this issue. Our current 
solution is to provide a precomipiled rpm with the pythons we want to use.


Why is that the standard os-distributed pythons do not work with zope? 
They seem to work with other python sw...


/dario - being curious...

--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley


___
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] passing the parameters to zsql method

2005-10-27 Thread Dario Lopez-Kästen

Denis V. Gudtsov wrote:


DLK use an intermediary Script (Python), ie:
[..skipped..]

Thank you. But, can i do this without using python? From zpt - to
zsql?

 


[cc-ing: [EMAIL PROTECTED]

well, yes in a way.

ZSQL methods have to be called like other metods, but AFAIK, they cannot 
be traversed like, for instance, scripts. As I understand it, this is  
for security reasons (I myself would never allow a zsql to be exposed 
without some scripts in between, but that's just me...)


Anyway, one way to do what you want is to do more in the zpt than may be 
advisable: exactly how to do it, I leave up to you, becasue there are 
several different ways of achieving this, but I give general directions. 
Also, there are probably other ways than what I describe below.


You can make the form post to iself, and use calls inside the form to 
prepare the input to the zsql.


lets say your zpt is called entry_form and looks something like this 
(pseudo zpt):


span tal:define=name request/form/name;
 account request/form/account;
 unused python: clients_add_sql(name=name, account=account); 
 tal:omit-tag= /


form action=entry_form
input type=text name=name
input type=text name=account
input type=submit
/form

Not sure if this works, but that is the general idea. This was inspired from

http://www.plope.com/Books/2_7Edition/AdvZPT.stx#2-9

section: Form Processing

Good luck!

/dario


--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley


___
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] passing the parameters to zsql method

2005-10-27 Thread Dario Lopez-Kästen

Jean-Marc Orliaguet wrote:


Dario Lopez-Kästen wrote:

 


Denis V. Gudtsov wrote:

   


DLK use an intermediary Script (Python), ie:
[..skipped..]

Thank you. But, can i do this without using python? From zpt - to
zsql?



 




Just curious too: isn't there an easier way of doing this using schemas
/ widgets / SQL adapters?

or are the zsql scripts so very specific that they do more than simple
schema mappings?

 


all of this sound way more complex that 1 script, 1 zpt and 1 zsql...


also you might want to put that logic in a tool and protect the methods?
(scripts and ZPTs are not protected as far as I know)
 



se above...

of course, IMHO, my 2 eurocents worth, YMMV, Standard Disclaimers Apply, 
etc.


/dario

--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley


___
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: ZEO and Sessions.

2005-04-14 Thread Dario Lopez-Kästen
Tres Seaver wrote:
http://www.zope.org/Members/richard/ZSQLSessionDataManager

Cool.  Where is CVS for that, so that I don't bug you for features. ;)
I could import it to cvs.zope.org, if you like.
I'd like to add Oracle support since I need it myself, and when I have 
working changes would like to have them included in newer releases of 
ZSQLSessionDataManager.

/dario
--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
...and click? damn, I need to kill -9 Word again... - b using macosx
___
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] The Zope Book

2005-04-12 Thread Dario Lopez-Kästen
Chris McDonough wrote:
I don't think anyone has given much thought to actually documenting all
these nice nifty features in 2.9.  Which is no change from the norm, and
it will be a fairly organic process again.  I hate it, but whatever.
- C
Speaking of which, and being one of the people that promised to deliver 
but has not done so 100% yet, is it possible to checkout the Zope Book 
from cvs or svn?

That'd help a lot in terms of incrementally adding stuff, at least for me.
Thanks,
/dario
--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
...and click? damn, I need to kill -9 Word again... - b using macosx
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope-DB] Re: [ZODB-Dev] Status and future of OracleStorage

2005-04-10 Thread Dario Lopez-Kästen
thanks to all that respondend.
What we are basically trying to do is to have redundant ZEO-services 
with automatic failover, hot stand by and all those things.

We can't afford ZRS so we are trying to cook our own stuff based on 
DirectoryStorage, but so far with limited success.

But, happily enough, I have now successfully avoided any further 
attempts from management take the OracleStorage path, something Ihave 
been trying to do for over a year now. Hopefully this time was the last 
one :-).

Thanks again,
/dario
--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
...and click? damn, I need to kill -9 Word again... - b using macosx
___
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db


Re: [Zope-dev] Parrot

2005-04-01 Thread Dario Lopez-Kästen
Alan Milligan wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Chris Withers wrote:
| ZEO, multiple clients and processor affinity settings already offer
| this, and with no extra development needed...
|
What userland tools are you using to implement processor affinity??
Alan
schedutils. See recent thread on the zope-list for a brief discussion on 
the topic.

/dario
--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
...and click? damn, I need to kill -9 Word again... - b using macosx
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Re: Problems with non-zope object attribute access

2005-03-11 Thread Dario Lopez-Kästen
Max M wrote:
btw. if setting __allow_access_to_unprotected_subobjects = 1 on the 
object doesn't work, the ImplicitAcquisitionWrapper most likely sets it 
to something else.

have you tried changing the order?
w = Acquisition.ImplicitAcquisitionWrapper(o, self)
w.__allow_access_to_unprotected_subobjects = 1
return w

turns out to be a spelling error. Did a search for allow_access_to in 
lib/python. It gave me the following knowledge (:

Wrong spelling:
__allow_access_to_unprotected_subobjects
Correct spelling:
__allow_access_to_unprotected_subobjects__
after that, it works like a charm! Thanks for all the help though, it 
showed some neat techniques that may come in handy in the future.

Cheers,
/dario
--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
...and click? damn, I need to kill -9 Word again... - b using macosx
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] SOAP Support for ZOPE

2004-12-15 Thread Dario Lopez-Kästen
Richard Jones wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Wed, 15 Dec 2004 06:54 am, Aruna Kathiria wrote:
I did some work regarding SOAP support on ZOPE and published this
document on zope.org.

Is there really no interest in getting SOAP support into the Zope core?
I've got a guy working on some Microsoft Word stuff at the moment, and he was 
dumbfounded when he discovered that Zope doesn't support SOAP. In his words, 
everyone supports SOAP. Sigh :)

Are there any objections to getting Aruna's patches into the 2.8 codebase? I'd 
be willing to do the work - but note I know practically nothing about SOAP - 
I just want to be able to use it.
I would like to have SOAP support in the Zope core (both z2 and z3). We 
are probably going to be forced to interface with Java based SOAP 
enabled software next year, and I for one would feel more comfortable 
being able to say that Zope supports SOAP out of the box... think 
important selling point.

/dario
--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
...and click? damn, I need to kill -9 Word again... - b using macosx
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Call for Offers: Zope training during Spring 2005

2004-12-14 Thread Dario Lopez-Kästen
[This is a general call for offers to interested parties. Apologies for 
the cross-post]

Greetings,
my organisation needs to hold one or more sessions of Zope training to 
meet current and future development and deployment needs. We use Zope as 
one of several (Web-)Application frameworks, and we typically need to 
interface and cooperate with external data sources (for example, User 
Management with Kerberos and other external User Sources providing user 
data - meaning we cannot base our UserFolders' data on Zope alone).

We will have a group of 8-12 people, most - if not all - experienced 
developers who will need to learn how to develop Applications on Zope, 
CMF, Plone and CPS. Participants can be assumed to know how to develop 
in Python (we will make sure of that).

We also want to focus on efficient ways to make Zope talk to Oracle, 
LDAP and MySQL (in that order) in an efficient and speedy manner, and 
how to develop high-speed, clusterable (ZEO) solutions with Zope-based 
technology.

At the end of the course(s) we expect the participants to be able to 
have a thorough understanding of what kind of frameworks Zope, CMF, 
Plone and CPS are, what their differences and their similarities are.

We also expect participants to know how to customise, adapt and develop 
applications based on Zope, CMF, CPS and Plone, how to develop add-ons 
to the above and how to develop Products that work with all of CMF, CPS 
and Plone.

To clarify, we also expect participants to be tought development 
techniques with File System based tools - not only on the Product level 
but on a solution level (i.e. all customisations, etc, of a site should 
be script/FS based as well).

The course(s) are scheduled to be held in March-April and possibly May, 
at Chalmers University of technology, Göteborg, Sweden.

We are not exclusively looking for a single party to provide courses for 
all of Zope, CMF, CPS and Plone; for example, you are welcome to offer 
training that only covers Plone or CPS.

While many of our participants can read and write english very well, 
they may be untrained in communicating verbally in English. It is 
therefore a plus if trainers are fluent in Swedish - it is an absolute 
requirement that trainers have good English communicative skills.

Please send your initial proposals per mail to the following address:
[EMAIL PROTECTED]
Please specify the following:
- Acceptable number of particiants
- What parts you are interested in
- A draft description of the training contents
- As estimate of the amount of work required from participants
- Your estiamte on how many sessions are needed
- Preliminary budget
If you have any questions regarding this offer, please contact me 
directly at [EMAIL PROTECTED]

Sincerely,
Dario Lopez-Kästen
IT Systems  Services
Chalmers University of Technology
Göteborg, Sweden
--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
...and click? damn, I need to kill -9 Word again... - b using macosx
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )
From jeff Tue Dec 14 12:51:39 2004
Return-Path: [EMAIL PROTECTED]
Delivery-Date: Tue Dec 14 04:51:39 2004
Return-path: [EMAIL PROTECTED]
Envelope-to: archive@jab.org
Delivery-date: Tue, 14 Dec 2004 04:51:39 -0800
Received: from exprod5mx31.postini.com ([64.18.0.186] helo=psmtp.com)
	by toko.jab.org with smtp (Exim 3.36 #1 (Debian))
	id 1CeC9T-00020S-00
	for archive@jab.org; Tue, 14 Dec 2004 04:51:39 -0800
Received: from source ([209.237.227.199]) by exprod5mx31.postini.com ([64.18.4.10]) with SMTP;
	Tue, 14 Dec 2004 07:54:18 EST
Received: (qmail 67624 invoked by uid 500); 14 Dec 2004 12:54:13 -
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: mailto:[EMAIL PROTECTED]
List-Subscribe: mailto:[EMAIL PROTECTED]
List-Help: mailto:[EMAIL PROTECTED]
List-Post: mailto:[EMAIL PROTECTED]
List-Id: Log4J Users List log4j-user.logging.apache.org
Reply-To: Log4J Users List [EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
Received: (qmail 67605 invoked by uid 99); 14 Dec 2004 12:54:13 -
X-ASF-Spam-Status: No, hits=1.5 required=10.0
	tests=DNS_FROM_RFC_POST,MSGID_FROM_MTA_HEADER,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (hermes.apache.org: domain of [EMAIL PROTECTED] designates 64.4.61.32 as permitted sender)
Received: from bay102-f22.bay102.hotmail.com (HELO hotmail.com) (64.4.61.32)
 by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 14 Dec 2004 04:54:09 -0800
Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;
	 Tue, 14 Dec 2004 04:54:07 -0800
Message-ID: [EMAIL PROTECTED]
Received: from 213.38.69.82 by by102fd.bay102

Re: [Zope-dev] Preventing scripts from being called directly

2004-08-25 Thread Dario Lopez-Kästen
Florent Guillaume wrote:
The way I do it is:
##parameters=foo, bar, ..., REQUEST=None
if REQUEST is not None:
raise 'Unauthorized', 'Not callable TTW'
I believe this is much better. I get function not accessible in 
restricted mode with my own solution.

Thanks,
/dario
--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Preventing scripts from being called directly

2004-08-23 Thread Dario Lopez-Kästen
Hello,
I am trying to prevent PythonScripts from being called directly TTW.
Is there a better way of doing this than the following code being called 
at the very begining of the script?

if script.getPhysicalPath() = context.REQUEST.PUBLISHED.getPhysicalPath():
  raise UnAuthorisedOrSimilar
Thanks,
/dario
--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Preventing scripts from being called directly

2004-08-23 Thread Dario Lopez-Kästen
Chris Withers wrote:
Dario Lopez-Kästen wrote:
I am trying to prevent PythonScripts from being called directly TTW.

Why?
because the scripts i use in conjunction with SUF and that return person 
information are callable as http://server/acl_users/scriptname.

And the SUF API demands that the scripts accept a parameter that then 
can easily be supplied in the url. If all this is done, then I can 
obtain info about users that way. Not good.


Is there a better way of doing this than the following code being 
called at the very begining of the script?

if script.getPhysicalPath() = 
context.REQUEST.PUBLISHED.getPhysicalPath():
  raise UnAuthorisedOrSimilar

Make the scripts only viewable by Manager, and give whatever calls them 
that role by Proxy.
hm... right... that'd require even more customisation polocy of my Plone 
site than what is there now...

I think i'll use the above code until I have time to fix the role/proxy 
assinging programatically.

BTW, will SUF have support for FS-based scripts in the future?
/dario
--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Access Zope objects from python

2004-07-06 Thread Dario Lopez-Kästen
Tor Oskar Wilhelmsen wrote:
Hi
This question is from a Zope newbie, who gets a little confused when 
trying to write a product for Zope.
My product fetches a lot of picture information, and this information 
shall be viewed in a fotogallery (the viewer is made as a ZPT)
 
My question is really simple then:
 
When I write this product in python, how could I generate a zope image 
object of each of the pictures in the db. The part I am interested in is 
how I can access and create zope objects from python. Which classes do I 
have to inherit from?
 
-Tor Oskar Wilhelmsen
Hi,
the zope developer guide (ZDG) is your friend, this chapter perhasp in 
particular.

http://zope.org/Documentation/Books/ZDG/current/Products.stx
the ZDG goes on about interfaces in it's first chapters. Yo donot need 
to use Interfaces if you do not want to, but they are very handy. Note 
that the ZDG is for 2.4, but it should work fairly OK.

The ZGD is a good companion to the Zope Book when developing products.
Hope this helps.
/dario
--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: Sotring __of__(self) wrapped Objects OK? (was Re: [Zope-dev] Storing references ... accross requests)

2004-06-23 Thread Dario Lopez-Kästen
Dieter Maurer wrote:
Whether or not you unwrap yourself or let the ZODB do it:
you loose the acquisition context. Later when you access
your object again (load it), you must rewrap the object.
When the object is stored as an attribute of a persistent
object this rewrapping happens automatically -- but
usually not with the original context!
Thak you again, Dieter. this ie s eaxctly what I needed. The loss of the 
acquisition context is not a problem in this particuklar context, since 
the context will always be a specific path in the ZODB (the path to the 
instance of a cmf-tool).

Thanks again.
/dario
--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Non-persisten objectgs OK? (was Re: [Zope-dev] Storing references ... accross requests)

2004-06-17 Thread Dario Lopez-Kästen
Dieter Maurer wrote:
Your problem can be summarized by storing acquisition wrappers
(of persistent objects) across requests.
...
You cannot store them in the ZODB as acquisition wrappers cannot
be stored there. Currently, the ZODB silently unmantles
acquisition wrappers. They may be rebound on access -- but
this will not give you the original acquisition context and
behaviour can be drastically different.
hello, again,
I have rearranged in my product now, so that I pass along dictionaries 
to populate the classes and using a cmf-tool to provide the interface 
for the various methods of the classes.

I am returning objects wrapped in __of__(self), ie.
   class Person(Acquisition.Implicit):
  def __init__(self data):
  ...
   PersonObject = Person(data).__of__(self)
   return PersonObject
If I want to pickle, store and later reuse PersonObject, I suspect that 
this also creates a similar to my original one, where I wanted to store 
ZODB-references in the PersonObject.

So should I, when pickling and storing the PersonObject, store
  PersonObject.aq_base
rather than just PersonObject?
Thanks,
/dario
--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Sotring __of__(self) wrapped Objects OK? (was Re: [Zope-dev] Storing references ... accross requests)

2004-06-17 Thread Dario Lopez-Kästen
[ resend - never got to the list ]
Dieter Maurer wrote:
Your problem can be summarized by storing acquisition wrappers
(of persistent objects) across requests.
...
You cannot store them in the ZODB as acquisition wrappers cannot
be stored there. Currently, the ZODB silently unmantles
acquisition wrappers. They may be rebound on access -- but
this will not give you the original acquisition context and
behaviour can be drastically different.
hello, again,
I have rearranged in my product now, so that I pass along dictionaries
to populate the classes and using a cmf-tool to provide the interface
for the various methods of the classes.
I am returning objects wrapped in __of__(self), ie.
   class Person(Acquisition.Implicit):
  def __init__(self data):
  ...
   PersonObject = Person(data).__of__(self)
   return PersonObject
If I want to pickle, store and later reuse PersonObject, I suspect that
this also creates a similar to my original one, where I wanted to store
ZODB-references in the PersonObject.
So should I, when pickling and storing the PersonObject, store
  PersonObject.aq_base
rather than just PersonObject?
Thanks,
/dario
--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Storing references in objects accross requests - bad or OK?

2004-06-14 Thread Dario Lopez-Kästen
Dieter Maurer wrote:
Urgent recommendation: avoid storing acquisition wrapped objects
across requests, store paths instead and locate the objects by
means of the paths.
Thank you Dieter and others that have helped me.
It seems the best way is either to rethink the way I am doing things, or 
to store only strings or lists to where the objects are.

Thank you for your assistance.
/dario
--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Storing references in objects accross requests - bad or OK?

2004-06-13 Thread Dario Lopez-Kästen
hello,
I am am worrying a problem here, where I need to store references to 
objects in my own objects, while at the same time needing to store and 
retreive my objects later.

Here is an example of what I need to do:
in a product BooTool for Zope I have:

class Foo:
  def __init__(self, data, ref_a):
self.data = data
self.a_handle = ref_a
self.stuff = []
  def bar(self):
# do something with self.stuff
cool = self.a_handle('one')
self.stuff.append(cool)
return self.stuff
def getStuff(data, ref_a):
   his method is available to Zope from the tool boo_tool 
  return Foo(data, ref_a)

in a python script I have a pythonscript:

my_ob = context.boo_tool.getStuff('123', container.my_script)
return my_ob

so my_ob contains a reference to the my_script Pythonscript/ZSQL Method.
What happens if I store my_ob in a session storage for instance and 
later retrieve it and do my_ob.bar() ?

What bad things can happen?
Thanks for any input.
/dario
--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Correction! Re: Calling Zope users/developers active in Sweden and Nordic Countries

2004-06-03 Thread Dario Lopez-Kästen
Hello, again. I had the email-address wrong. Please use the following 
address instead:

[EMAIL PROTECTED]
Sorry for the confusion.
/dario
Dario Lopez-Kästen wrote:
Hello,
this is a General call to all Zope users and developers that are active 
in Sweden and other nordic Countries.

There is a plan on gathering during the EuroPython Conference to meet 
and get to know each other and see who we are, what we do and ossibly 
future models of doing business.

If you are interested, please send a message to the Swedish zope-list, 
[EMAIL PROTECTED] with a shor presentation.

I hope to see you on EPC!
/dario


--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Calling Zope users/developers active in Sweden and Nordic Countries

2004-06-03 Thread Dario Lopez-Kästen
Hello,
this is a General call to all Zope users and developers that are active 
in Sweden and other nordic Countries.

There is a plan on gathering during the EuroPython Conference to meet 
and get to know each other and see who we are, what we do and ossibly 
future models of doing business.

If you are interested, please send a message to the Swedish zope-list, 
[EMAIL PROTECTED] with a shor presentation.

I hope to see you on EPC!
/dario
--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Zope threads on 2.7.0, python 2.3.3

2004-05-26 Thread Dario Lopez-Kästen
Heimo Laukkanen wrote:
Hi,
I am hitting my head agains wall - and witnessing strange behaviour, 
where after time most of load focuses only to one thread. I am not sure 
what is the cause of this, but so far we have seen different things 
before load has concentrated to one single thread.
We also have this behaviour, but I have thought that it was our 
overusage of DCOracle2 connections that was the culprit, along with out 
bad TTW code.

Do you use any DA, nad have long running SQL queries?
We have no fix for this, but have resigned to do restarts every now and 
then. We use Zope 2.5.1, Redhat 7.3

/dario
--
-- ---
Dario Lopez-Ksten, IT Systems  Services Chalmers University of Tech.
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Zope threads on 2.7.0, python 2.3.3

2004-05-26 Thread Dario Lopez-Kästen
Heimo Laukkanen wrote:
Do you use any DA, nad have long running SQL queries?

Yes, extensively. We use DCOracle2 that had to be patched to work with  
UTF-8. And we combine it with badly scripted code too. We started to do  
prototype by using own Archetypes storage layer that stores data from  
content objects to the Oracle database in certain format - so every 
access  to an object actually creates a load of queries to the Oracle 
database.

Connections to the databse are handled by the Oracle adapter in Zope, 
so  we have not done any own connections but rather just run queries 
through  Zope adapter.
We use a lot of queries (minimum 10-15) for each request, accros around 
7 DA connected to various Oracle schemas. Most of the queries are 
fairsly simple, but there are a couple of queries that are often used 
that are just plain bad, however they are so bad that it is very 
difficult to fix them.

These queries generate a lot of load on the DB server (they are *very* 
bad SQL). So these tend to take a long tiem to respond.

We have no fix for this, but have resigned to do restarts every now 
and  then. We use Zope 2.5.1, Redhat 7.3
How did you debug or pinpoint the culprit to be DCOracle connection?
Gut feeling, doing some basic optimisation of the not-so complicated 
cases. I did receive a few tips on how to do real debugging from Matt, 
Dieter and others, but those tips assume a level of knowlegde that I do 
not posses yet - also I have until recently not had any hardware to do 
that kind of debugging on.

I just made some basic observations - some times Zope would stop 
responding and angry users would call, and I woudl find threads that had 
been running for more thatn 7 seconds, while at the same time I 
could observe queries on the database that had been running for similar 
lenght of time, occasionally even blocking the database altoghther.

Some times it seemed like Zope wold lose the connection to the 
database (we still get that randomly from now and then) but I am not 
100% sure that this is only zope's fault - it may be that the database 
was under so much load that it lost the connection to zope, thus 
triggering some kidn of wait for reply loop on zope's side.

Chris withers has done some work in improving DCOracle2's connections 
and general bug-fixning. If you haven't used it, grab the latest 
DCOracle2 from cvs - it is much better.

We see this behaviour mostly under heavy load - many users accessing the 
database all the time. Using the latest DCOracle and improving parts of 
our code has removed a lot of the problems, however it believe it is 
still unclcear what the problem is - in our setting, my stance is that 
we have only cured the symptoms, not the real problems...

Have you tried cx_Oracle?
No I was not aware that they had a Zope adaptor.
/dario
--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Zope threads on 2.7.0, python 2.3.3

2004-05-26 Thread Dario Lopez-Kästen
Heimo Laukkanen wrote:
On Wed, 26 May 2004 08:44:44 +0200, Dario Lopez-Kästen  
[EMAIL PROTECTED] wrote:

Ok. In our case we use very simple queries, but this stupid code 
generates  a lot of those. One thing to do is to throw away stupidity 
and Archetypes  tsorage layer that is an bad idea - and put object to 
flush and read it's  data from the oracle only when actually necessary.
I agree. We cannot do it however, because ost of my code is mostly TTW, 
so w have no custom obejcts. However, this is a good strategy in gerenal 
- do not read from external soruces unless it is necessary...

Chris withers has done some work in improving DCOracle2's connections  
and general bug-fixning. If you haven't used it, grab the latest  
DCOracle2 from cvs - it is much better.

We did take it from CVS. Has there been much work on lately?
not that I am aware of. (I haven't checked :)
Have you tried cx_Oracle?
No I was not aware that they had a Zope adaptor.

Well Dieter and others suggested that it should be doable to to write  
adaptor based on any python db api compliant adaptor - either using  
DCOracle, psycopg or similar as base. However since I've never done 
that  kind of work before I am reluctant to take the step and be bitten, 
hence  the question if you have had more courage.
No, sorry. For me, this too is beyond what I can do at the moment, 
mostly due to time constraints. Hiopefully this will chagne as more 
people become invlved with Zope at my work...

/dario
--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Re: Conflict errors on BDBMinimal storage

2004-05-19 Thread Dario Lopez-Kästen
Tres Seaver wrote:
I recently reworked Anthony Baxter's SQLSessions product for a 
consulting customer
...snip...
What I would like to do is revisit the effort, using the new 
PluginRegistry code released as part of the PluggableAuthService 
release;  I am, however, pretty well booked up for the next few 
weeks. I would be glad to advise anybody who felt called to take on 
such an effort, however.
...snip...
I actually need this whithin the next couple of weeks - only one caveat: 
I'd have to do a serious read-up on sessioning, which I don't understand 
at all and the PluggableAuthService product, which I never heard of 
until I read about it.

We have something similar to SQL-Sessions. However, our security 
machinery is built on top of Zopes own (in parallell not replacing it). 
It is loosely modelled around a mix of Zope's way of doing things with a 
hint of XUF (we couldn't use XUF at the time, because it wasn't stable 
enough back then).

One of the goals wiht the current rewrite of one of our apps is to go 
back doing things the Zope-way, by using Zope's own security mechanisms. 
We have working solutions for authentication, but the sessioning part 
remains - especically since we, like in Steve's setup expire sessions on 
the server rather than on the browser end.

So... any hints on where to begin reading for the completely-lost newbie?
/dario
--
-- ---
Dario Lopez-Ksten, IT Systems  Services Chalmers University of Tech.
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] masimum number of mounted databases with APE?

2004-05-03 Thread Dario Lopez-Kästen
Hi, I am thinking of partitioning my ZODB quite a lot for both serving 
and packing performance reasons.

What is the maximum number of recommended mounted ZODB's to use with DBTab?

Thanks

/dario

--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: maximum number of mounted databases with APE?

2004-05-03 Thread Dario Lopez-Kästen
Tres Seaver wrote:

Dario Lopez-Kästen wrote:

Hi, I am thinking of partitioning my ZODB quite a lot for both serving 
and packing performance reasons.

What is the maximum number of recommended mounted ZODB's to use with 
DBTab?


Hmmm, the Subject: header suggested that the question was about APE;  I 
almost skipped over it.
ouch! Sorry. I thought DBTab, but spelled APE.

WRT DBTab:  as of Zope 2.7, that product is obsolete:  its functionality 
has been folded into Zope.Startup's processing of the config file.
We have to use DBTab atm because we are still using 2.6.2 in production 
and we haven't tested 2.7 yet for this particular application.

would it be safe to assuem that if we keep the number of monted 
databases below 15 or even 10, are we on the safe side?

BTW - we use DirectoryStorage and had to patch DBTab to make this work 
(that patch is pending more time to be finalised and released) - do we 
need to do the same with Zope 2.7?

I haven't looked at Zope 2.7 yet, so I haven't been able to determine 
for myself of much alike/different it is from DBTab in this regard.

Thanks,

/dario

--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: Zope3, CMS, IDEs

2004-04-22 Thread Dario Lopez-Kästen
Joachim Werner wrote:


[Seb Bacon wrote:]  

I disagree that performance is a problem in Zope 2.  With a combination 
of profiling to eliminate bottlenecks, ZEO, and Squid, Zope hums along  
beautifully.  We are consulting for a company that is in the process of  
replacing their Java front-end with Zope.  They have huge amounts of  
traffic, and are impressed with Zope's performance compared with their  
comparable Java system. 
 
I've heard that a couple of times. But let's face it: Of course you can get 
Zope to deliver partly dynamic pages at high speed and if you use caching you 
can deliver pages at wire speed, but it will not be nearly as fast as a 
solution using Java or .NET/C# if we are talking about a lot of two-way 
traffic and CPU-intensive tasks in the back end, e.g. an online shopping mall, 
a booking system, or a groupware. 
I have yet to see a comprehensive list of official (as in approved) 
things to consider when designing and building your application and then 
deploying it.

I am not trying to coerce anyone into doing this for me, I am just 
pointing out the situation. There are several docs that go thru 
different aspects, but they are scattered around the net, and there is 
no real, AFAIK, description of do's and don'ts related to Zope 
application desing.

I think these things should go into the manual perhaps. I will try to 
contribute to such an end - eventually a chapter on that might even 
become written ;-)

P.S. I don't agree with your pessimistic assessment of CMF, or Plone.  
They're both good at what they do. 
 
I agree with you that Plone is quite impressive as it is now, but nobody will 
ever convince me that the CMF = Plone way was the right way to go ... Well, 
different people, different tastes ;-) 
This is also something I have never been able to find any comprehensive 
document describing in som depth what the shortcomings of CMF and Plone.

Is there one?

/dario

--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] server for new protocol?

2004-03-04 Thread Dario Lopez-Kästen
Nikolay Kim wrote:

it'll be open source.

source in attach.

it not very usefull without additional products that must actually
handle emails. 

now i'm working on mail storage products.

very cool product Nikolay.

re mail storage: have you looked at ZMailIn?

http://www.zope.org/Members/NIP/ZMailIn

/dario

--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Serving big files thru zope?

2004-03-01 Thread Dario Lopez-Kästen
Stefan H. Holek wrote:

Dario,

The best solution for me always has been to serve such files statically 
from Apache, bypassing ZServer altogether. In fact I have added support 
for static URLs to my version of ExtFile 
http://zope.org/Members/shh/ExtFile.

ZEO clusters will need a comon disk share (SAMBA, NFS) for this to work.
Hi, thanks for the reply.

I am a bit hesitant to revert to filesystem based storage at this point 
- we used to use LocalFS but switched from it in favor of DirectoryStorage.

I am also wondering about the security aspects of bypassing Zope to 
serve files - acess to some of the files we need to serve is restricted 
to particular users with particular permissions, and I cannot clearly 
see how this would be possible to accomplish without Zope's security 
machinery.

So, I am looking for a solution that either utilises Zope+ZServer with 
additional fixes or that replaces ZServer altoghether with something 
better (Apache, Pound, Twisted?). All this assuming of course that 
ZServer is not good at serving large files to many users.

Thanks,

/dario

--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Serving big files thru zope?

2004-02-29 Thread Dario Lopez-Kästen
Hello,

I need to serve big files from zope - PDF, movies, large PS-files, 
Students lab-results, etc. We recently moved from LocalFS to  Dirstorage 
to manage ZEO-ability in a clustered enviromnet).

Quite a while ago, I remember having read somewhere on the lists that 
there is a pacth/fix for Zope/ZServer that optimises the way zope serves 
large files.

Is the current state of ZServer such that it is suboptimal for serving 
large files? if so,

a) what is the problem with the current implementation?
b) is there a fix available?
if not b) then I am willing to start looking into it. I need this for my 
unis student web-site.

Thanx,

/dario

--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Proposal (was How to make Zope fail nicely under high load?)

2004-02-19 Thread Dario Lopez-Kästen
Bjorn Stabell wrote:
I wrote up a simple proposal for how to change Zope to work better under
heavy load:
 
http://zope.org/Members/bjorn/proposals/MakeZopeFailNicelyUnderHeavyLoad

The solution is a bit different from what we discussed on the list
before; basically do away with the Medusa request queue altogether and
use listen()'s backlog instead.
Comments are welcome.
I think this might be a viable way, thogu I really can'ty comment on the 
 tech details (becaus of lack of knowledge).

I do remember from quite some time ago that some people had replaced 
Medusa altogheter with something different (Apache + mod_python, 
Twisted...) - any one heard anything about this?

/dario

--
-- ---
Dario Lopez-Kasten, IT Systems  Services Chalmers University of Tech.
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Zope, forking and cpu-affinity

2004-02-12 Thread Dario Lopez-Kästen
Dieter Maurer wrote:

Zope itself does not fork (unless you use system, popen or things like
that; in these cases, you do not want to bind the children to the same
processor).
Well, I had that impression as well, but here is the output of ps on my 
machines (edited for cruft-removal):

UID  PID   PPID  C STIME TIME CMD
zope 32538 14379 0 Feb09 00:02:32 python2.1 z2.py -X -w 
zope 32539 32538 0 Feb09 00:00:00 python2.1 z2.py -X -w 
zope 32541 32539 0 Feb09 00:00:09 python2.1 z2.py -X -w 
zope 32542 32539 0 Feb09 00:00:11 python2.1 z2.py -X -w 
zope 32543 32539 0 Feb09 00:01:52 python2.1 z2.py -X -w 
zope 32544 32539 0 Feb09 00:01:41 python2.1 z2.py -X -w 
that is more than 2 processes for a single instance...

This is on both RH7.3 and RH AS 2.1...

I don't think these are threads, but I couldn't say for sure (and they 
have different pids). I don't know how tor turn threading off for ps/top.

How can I tell if these are threads or real processes?

Thanks,

/dario

--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Zope, forking and cpu-affinity

2004-02-12 Thread Dario Lopez-Kästen
Toby Dickenson wrote:

On Thursday 12 February 2004 08:26, Dario Lopez-Kästen wrote:
that is more than 2 processes for a single instance...
one of them is the supervisor process that restarts the main zope process if 
it crashes.

the others are all threads of one process. one main medusa thread, and 4 
publisher threads.
ah. I see - thanks. Doing some further testing on another machine tells 
me that on RH AS Enterprise 3 (or what's-it's-name), zope is listed as 
only two threads, as expected.

Thank you for the clarification.

Sincerely,
/dario
--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] How to make Zope fail nicely under high load?

2004-02-11 Thread Dario Lopez-Kästen
Bjorn Stabell wrote:
It appears the way to control it would for Apache or Zope to return 503
Service Unavailable when the load is too high, but we haven't found a
good way to do this; Zope doesn't appear to have any mechanism for it,
and Apache's ProxyPass doesn't either.  I guess load balancers would,
but that's a bit overkill since we run the server on one machine.
Hi, I'm very interested in your resutsl. We have exaclty the same 
situation, though we have not analysed it further - the only thing that 
saves us is to restart zope.

re: load balancing: there is Pound - http://www.apsis.ch/pound/ - that 
might serve as a loadbalancer between processes in a single machine.

Maybe that will help a bit, though it doesn't really resolve the issue 
with zope choking; if it works, it will merely circumvent it.

hth,

/dario

--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] About Zope Security

2004-01-24 Thread Dario Lopez-Kästen
Casey Duncan wrote:

They are fixed in the latest releases of Zope 2.6 and 2.7
...snip good info...

Download a new version of Zope and test it out with a copy of your
application. Let us know if anything breaks.
Thank you.

Sincerely,

/dario - off to test new zope-versions

--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] About Zope Security (was: Zope - SecurityFocus Newsletter #232)

2004-01-23 Thread Dario Lopez-Kästen
Chris Withers wrote:

Hi,

Can anyone shed light on all of these? I know about some of them, but 
this is quite a disturbingly long list...
What is the current status of these issues? I am running a rather larges 
site with sensitive personal data.

The decision to use Python/Zope instead of Java/uPortal is very much 
debated by people whith power, and I am trying to protect the investment 
made in Zope.

I know, you get what you pay for etc, but I am struggling to keep Zope 
instead of having to  migrate to Java, and it is hard enouigh as it is. 
All this is politics, perception and logistics and has nothing to do 
with technical advantage.

Unfortunately I cannot help very much in resolving these issues since I 
am not knowledgeable enough to be able to help, but I would like to 
follow the status of these issues, under NDA if need be.

It is also a matter of taking steps to protect personal data.

Sincerely,

/dario

--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] java + zope

2003-10-24 Thread Dario Lopez-Kästen
Paul Winkler wrote:
 
You can also go the other way - make calls to Zope from java via http.
http://sourceforge.net/projects/pstream/
hm... no one has menetioned JPE yet, I see. JPE = the Java Python 
Extension. http://jpe.sourceforge.net/

I think chrisw did some work one ot two years ago with JPE and Lucene.

Looking at the cvs for jpe.sourceforge.net I see that there has not been 
much activity the last 19-20 months, though...

/dario
--
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Controlling start en finish of a request

2003-10-16 Thread Dario Lopez-Kästen
Hello,

I need help with ideas on how to solve my little problem here.

I need to sort of be more in control of a request, meaning that at the
beggining of a request I want to set some variables and call some python
scripts and at the end of a request I want to set soem other variables and
call some other python scripts

How would I be able to accomplish that? We sort of have semi-solved it by
setting and calling from standard_html_header and standard_html_footer, but
that is not enough.

IS there a way of achieving what I want to do?

I was told on IRC to do look into TransactionManager but I don't know how to
make this availabel Zope-wide.

Any ideas are appreciated.

Thanks,

/dario

- 
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Which ZODB to use for both Zope 2.5.1 and 2.6.1 on Python 2.1.3

2003-10-08 Thread Dario Lopez-Kästen
Hello,

the subject says it all. I have looked at the ZODB site, but I can't find
any conclusive info.

Thanks,

/dario

- 
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Which ZODB to use for both Zope 2.5.1 and 2.6.1 onPython 2.1.3

2003-10-08 Thread Dario Lopez-Kästen
Also I forgot to mention: this is for a kluster we are setting up, so I need
to know what ZEO is recommended for us with Zope 2.5.1 and 2.6.1 with Python
2.1.3.

Thanks

- Original Message -
From: Dario Lopez-Kästen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 08, 2003 11:42 AM
Subject: [Zope-dev] Which ZODB to use for both Zope 2.5.1 and 2.6.1 onPython
2.1.3


 Hello,

 the subject says it all. I have looked at the ZODB site, but I can't find
 any conclusive info.

 Thanks,

 /dario

 - 
 Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Risks with Zope 2.6.2 with Python 2.2.3

2003-10-08 Thread Dario Lopez-Kästen
Hello,

following Jeremy Hylton's advice, I would like to ask the developer
community:

what risks are associated with Zope 2.6.2 with Pythoin 2.2.3?

Thank you,

/dario

- 
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: Which version of ZODB and ZEO to use for Zope?

2003-10-08 Thread Dario Lopez-Kästen
Hi again, and thanks for all the replies.

Given that we are going to use this to deploy to production within the
coming week, we will stick with Python 2.1.3, Zope 2.6.2 and use ZODB 3.1.4.

We will wait for Zope 2.7 to stabilise or reach a 2.7.x version before we
switch tp Python 2.3.x and ZODB 3.2.

Thank you again for all the responses.

/dario

- 
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Re: PythonLibraries Product

2003-09-10 Thread Dario Lopez-Kästen

- Original Message - 
From: Evan Simpson [EMAIL PROTECTED]
 Both of these solutions suffer from the two or more objects to
 accomplish one task management problem.  I usually combine the objects
 in a dedicated Folder, which is still a bit awkward, and doesn't solve
 everything.  One drawback is that the individual components are all
 published, despite the fact that I only intend one of them to be
 web-addressable.
...znip...
 On the other hand, Libraries don't support 'traverse_subpath', require
 an extra path step to address, and don't allow permission and proxy
 settings at individual function granularity.

hm... I have made similar observations, and not only with Scripts
(Python)... one idea I had, though I do not know if it is possible to
implement, is to create a new kind of container that only exposes/publishes
objects with a certain permission.

Is it possible w/o patching the way zpublisher works?

/dario
- 
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: FHS, zopectl, #925, Re: [Zope-dev] 2.7 installation

2003-06-19 Thread Dario Lopez-Kästen

- Original Message - 
From: Adrian van den Dries [EMAIL PROTECTED]

 May I respectfully ask why there is so much concern with such
 complicated setups?  Surely a production environment (which is what
 any Zope distribution should aim for) will standardise on a software
 version?

  I have this need - and what we do is *exactly* what you ask: we
standardise on a software version, on service level. It seems (my
impression) that most unix distros take the following view: one service, one
machine.

  We often find that we need to run several versions of both Zope and Apache
on the same machine at the same time; this might be because the current
production version of a service needs to have some packages for apache/zope
that conflict with newer versions of apache/zope, or simply because we do
not want to change the environment for production services that work.

  I have created a buch of shell scripts that allows me to handle several
versions of python and Zope on the same machine, as well as manage several
INSTANCE_HOMEs. Each INSTANCE_HOME can specify which python to use, which
zope to use and any extra stuff that is needed (like what Oracle envrionment
it wants to run with, etc).

I will have/have had to change these for both Zope 2.6 and for Zope 2.7 -
but my hope is that with 2.7 I can just throw my scripts away and use the
stock ones.

 If the concern is because *developers* want to run multiple Zope
 instances on multiple Zope versions with multiple Python versions,
 then I would suggest writing an *alternative* mechanism for developers
 to mangle their PYTHONPATHs and whatever.

I find that solutions for production environments, in the style of the one
oulined above, work very well for development environments as well.

My 2 öre worth...

/dario

- 
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Does zope still need a python compiled with --without-pymalloc ?

2003-02-08 Thread Dario Lopez-Kästen
Great, thanks to both of Dieter and Anthony!

Sincerely,

/dario

- Original Message - 
From: Anthony Baxter [EMAIL PROTECTED]


 
  Dieter Maurer wrote
  I am almost sure, you no longer need it.
  At least, we use Python 2.1.3 compiled without this option
  and do not see problems (attributable malloc).
 
 The (known) bugs that pymalloc (and cycle-gc) triggered are
 fixed in 2.1.3.
 
 Anthony


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )



[Zope-dev] Logging in as admin and impersonating another user - is it possible with Zopes sec policy?

2002-09-11 Thread Dario Lopez-Kästen

Hello!

I am wondering if it is possible to write a userfolder that does the
following:

For certain categories of users, for instance Teachers, while keeping their
current authorisation of Teachers, I need to let them impersonate a user
with lower authorisation than they currently have, say Students.

So a logged in Teacher could for instance examine what a particular student
sees in a Student portal (i.e. previewing it as would that particular
student)

Is this possible with Zopes current securtiy mechanisms?

/dario

- 
Dario Lopez-Kästen, [EMAIL PROTECTED]IT Systems  Services
System Developer/System Administrator Chalmers University of Tech.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Re: Bump up the nr of ZOpe trhreads

2002-09-10 Thread Dario Lopez-Kästen


- Original Message -
From: Chris McDonough [EMAIL PROTECTED]


 You'll also want to change the number of database connections.  If
 you use FileStorage, put the following in a custom_zodb.py file in
 your Zope software home or instance home (if you run an instance
 home setup):

 import ZODB.FileStorage
 import ZODB.DB

 filename = os.path.join(INSTANCE_HOME, 'var', 'Data.fs')
 Storage = ZODB.FileStorage.FileStorage(filename)
 DB = ZODB.DB(Storage, pool_size=25, cache_size=2000)

 The pool_size parameter is the number of database connections.
 The number of database connections should always be higher than the
 number of threads by a few (it doesn't make sense to have fewer
 database connections than threads).


Great, thanks :-)

But, am I still limited to max 7 zope threads? I wish to have around 20.
About 1/2 to 1 year ago I recall being told that with

python z2.py -t nrOfThreads

nrOfThreads could be set to whatever but Zope would not use more than 7 in
any case. Is this so still? Can it be changed? And is -t a parameter for
zserver or for the ZODB?

TIA

/dario

- 
Dario Lopez-Kästen, [EMAIL PROTECTED]IT Systems  Services
System Developer/System Administrator Chalmers University of Tech.




___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Bump up the nr of ZOpe trhreads

2002-09-09 Thread Dario Lopez-Kästen

Hello!

Apart from the -t option to z2.py (that, afaik, limits me to only 7), what
other settings do I need to change to bump up the number of Zope threads to
around 20, both for ZServer and for ZODB Accesses? If i change these
settings, which one will allow me to have around 20 threads available to
access an external Oracle DB (the zserver or the ZODB)?

TIA,

/dario

- 
Dario Lopez-Kästen, [EMAIL PROTECTED]IT Systems  Services
System Developer/System Administrator Chalmers University of Tech.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Zope 2.4.3 and Python 2.2

2002-08-21 Thread Dario Lopez-Kästen


- Original Message -
From: Andre Schubert [EMAIL PROTECTED]
To: Andreas Jung [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, August 21, 2002 8:06 AM
Subject: Re: [Zope-dev] Zope 2.4.3 and Python 2.2


 On Wed, 21 Aug 2002 07:52:30 +0200
 Andreas Jung [EMAIL PROTECTED] wrote:

  Use Python 1.5.2 with Zope 2.4.X and Python 2.1.3 for
  Zope 2.5.X. Any other combination is *not* supported.

 Why use Zope 2.4.X with Python 1.5.2 when i could find RPMs
 on zoep.org that requires Python 2.1.x ?
 And yes i know that this is not supported, but could there anything
 incompatible between Python 2.1 + Zope and Python 2.2 + Zope ?

 Greets,

Because Zope 2.4.3 depends on Python 1.5.2 and will break with newer pythons
(this has been experienced by others). Similarely if you use Zope 2.5.x, you
need to use Python 2.1.3, because that python contains bugfixes that
specifically affects Zope's stability.

Zope 2.5.x and 2.4.x will not work with python 2.2x either, due to
incompatibilities with python 2.2.

Also, if you are using python 2.1.3, you probably want to install it from
source, and configure it by passing the --without-pymalloc directive to the
configure script.

I cannot really remember why this is necessary, but I have some faint memory
of some incompatibility between the newer optimised memory management
thingie in python 2 and zope... or something like that :-)

hth

/dario
- 
Dario Lopez-Kästen, [EMAIL PROTECTED]IT Systems  Services
System Developer/System Administrator Chalmers University of Tech.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Zope 2.4.3 and Python 2.2

2002-08-21 Thread Dario Lopez-Kästen

I wrote:
 Because Zope 2.4.3 depends on Python 1.5.2 and will break with newer
pythons
 (this has been experienced by others).

argh! Ignore this part - zope 2.4 requires 2.1, as Andreas pointed out. But
if you use 2.1, be sure to use 2.1.3 or later since it fixes wierd stuff
that affect Zope's stability.

/dario


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Python, Zope and pymalloc

2002-05-23 Thread Dario Lopez-Kästen

hello!

Is anyone using zope with a python that is not configured with
--without-pymalloc ?

I understand that there is still a conflict with ExtensionClass unless
python is cfg'd --without-pymalloc?

Thanks,

/dario
- 
Dario Lopez-Kästen, [EMAIL PROTECTED]IT Systems  Services
System Developer/System Administrator Chalmers University of Tech.




___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Zope/Python crashing

2002-05-17 Thread Dario Lopez-Kästen

From: Ahsan Imam [EMAIL PROTECTED]
 I just downloaded python 2.1.3. Do I still have to edit the object.h
 file before I compile it.  
 

no, 2.1.3 includes bugfixes that specifically address those issues.

/dario




___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Re: stacks != easy to explain

2002-05-15 Thread Dario Lopez-Kästen

From: Chris Withers [EMAIL PROTECTED]

  it is hard to read (Some of us design Zope
  sites TTW...)

 Un-learn that habit too. It's so nice having things like search  replace
and syntax
 highlighting afterall...



Now, this is an interesting statement and one I have heard often, and that I
throughly disagree on.

Correct me if I am wrong, but isn't the TTW part is what is one of the
strenghts of Zope - I'd say that the fact that Zope uses TTW editing has had
a major impact on the kind of templating mechanism and infrastructure that
Zope, as opposed to much of the competition, offers out of the box.

I myself choose over iPlanet and Oracle Application Server, because Zope had
a lot of infrastructure IN PLACE that is needed for development, as opposed
to say, Oracle Application Server, where I had to write everything from
scratch, including lots of the admin interfaces.

As an example, the only real competitior that Zope had at the time I was
loking for web-app frameworks was Roxen Challanger, where Roxen gives away
the Roxen Webserver as GPL, but sells their TTW development environment for
about 5000 US$/developer. So, TTW has it's merits. Now, Roxen has FILESYSTEM
based development as well, which might be what we all want as well, but *not
instead*. Just because ChrisW has gone beyond TTW editing, does not make it
a Bad Thing(tm) in general :)

Going back to the ZPT is good/bad and DTML is ok/evil discussion,
something hit me a couple of weeks ago while chatting on #zope:

It seems that ZPT is mostly aimed at the Page Designer, whereas DTML is
mostly aimed at the Developer. Would this be a correct assesment of the
situation?

/dario




___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Why are ZClasses bad?

2002-04-03 Thread Dario Lopez-Kästen

Hello!

I keep hearing people argue that ZClasse are bad, and I am curious as to why
they are.

I recall something about ZClasses and the catalog, but are there any other
badness with ZClasses?

/dario - curious

- 
Dario Lopez-Kästen, [EMAIL PROTECTED]IT Systems  Services
System Developer/System Administrator Chalmers University of Tech.



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Tracing transactions

2002-03-26 Thread Dario Lopez-Kästen

Hello!

I am wondering if it is possible to trace transactions.

I need it mostly to log what transacations failed, why they failed and what
was involved.

Any pointers in a general direction towards this are appreciated.

Thanks,

/dario

- 
Dario Lopez-Kästen, [EMAIL PROTECTED]IT Systems  Services
Systems Developer/Administrator  Chalmers University of Technology



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Zope 2.4.4b1 and Python 2.1.2 crash again

2002-03-12 Thread Dario Lopez-Kästen

hm... i am now suffering from core dumps every 2-30 minutes...

anyone has gotten any further with tracking these down?

/dario

- 
Dario Lopez-Kästen Systems Developer  Chalmers Univ. of Technology
[EMAIL PROTECTED]  ICQ will yield no hitsIT Systems  Services



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Cookie Crumbler and similar products (Re: Zope 2.6 project updated)

2002-03-05 Thread Dario Lopez-Kästen

From: Matt Behrens [EMAIL PROTECTED]
 Christian Theune wrote:

  Well I saw the cookie crumbler wish has been added to the list already,
  and (as i tested it out this moment) don't see what exactly needs to
  be done than adding it by default to the root userfolder.
  Well, probably some facelifting to the default login, thats not
  urgent in any way but if wished i would do that.

 Well, as far as least-intrusive, CC loses some points by not being
 compatible with some of the user folders that do their own cookie auth,
 although that's arguably not CC's fault.


Which makes me think of another point. I haven't used Zope 2.5.1 yet, but I
understand from some of the traffic on the mailinglists that some have
wanted to disable the session tracking/session management beause it
interferes with the solutions they allready use for session tracking.

And now there is a possible inclusion of another product (CC) that might
conflict with other products' cookie functionality.

Instead of locking up users with a particular implementation of a solution
to a general problem, why not present an API for a) session management and
b) cookie management, and then present default products that use these API's
to provide solutions? This way it will not be hard to replace both session
management and cookie management with other products.

Any one else think that this might be a worthwhile idea? If so, I can offer
time and effort and my limited knowledge of zope to make this possible.

/dario



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Zope 2.6 planning - call for contributors!

2002-03-01 Thread Dario Lopez-Kästen

I'd like to see ZSQL methods altered so that bind variables could be used in
SQL queries.

This would improve  SQL operations for at least Oracle, which is the one db
I know of that uses bind variables to speed it's querie-management.

This is filed as a bugreport in the collector previously but has been turned
down/put on hold until a newer version of zope.

What is the time schedule of Zope 2.6? I ask because I need to start using
2.5 before I suggest more improvements to zope :-)

/dario

- 
Dario Lopez-Kästen Systems Developer  Chalmers Univ. of Technology
[EMAIL PROTECTED]  ICQ will yield no hitsIT Systems  Services




___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Zope 2.3.3 back-downgrade

2002-02-14 Thread Dario Lopez-Kästen

Hi!

If I use PythonScripts, are there any serious problems with downgrading a
Zope-2.4.3/2.4.4 to 2.3.3?

I cant remember if 2.3.3 had pythonscripts, but i recall that there was a
product that later became officially pythonscripts...

Are there any other incomaptibilities that anyone knows about?

Thanks.

/dario

- 
Dario Lopez-Kästen Systems Developer  Chalmers Univ. of Technology
[EMAIL PROTECTED]  ICQ will yield no hitsIT Systems  Services



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Zope-.2.4.4 to Zope 2.3.3 downgrade - is it to ask for trouble?

2002-02-14 Thread Dario Lopez-Kästen

Hi!

If I use PythonScripts, are there any serious problems with downgrading a
Zope-2.4.3/2.4.4 to 2.3.3?

I cant remember if 2.3.3 had pythonscripts, but i recall that there was a
product that later became officially pythonscripts...

Are there any other incomaptibilities that anyone knows about and I should
be aware of?

Thanks.

/dario

- 
Dario Lopez-Kästen Systems Developer  Chalmers Univ. of Technology
[EMAIL PROTECTED]  ICQ will yield no hitsIT Systems  Services




___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Zope-.2.4.4 to Zope 2.3.3 downgrade - is it to ask for trouble?

2002-02-14 Thread Dario Lopez-Kästen

Hi!

If I use PythonScripts, are there any serious problems with downgrading a
Zope-2.4.3/2.4.4 to 2.3.3?

I cant remember if 2.3.3 had pythonscripts, but i recall that there was a
product that later became officially pythonscripts...

Are there any other incomaptibilities that anyone knows about and I should
be aware of?

Thanks.

/dario

- 
Dario Lopez-Kästen Systems Developer  Chalmers Univ. of Technology
[EMAIL PROTECTED]  ICQ will yield no hitsIT Systems  Services




___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



  1   2   >