[Zope3-dev] zope3 - grok - Martijn

2007-08-29 Thread Markus Leist

I want to pay Martijn Faasen a compliment for the grok-workshop this
last weekend in St. Augustin, Bonn, Germany.

With (t)his grok-view he builds a very informative and enjoyable bridge
to zope3 and all its capabilities.

Thank you and all the other Zope3-developers very much indeed!

Markus

ps.
Ok, ME GROK SMASH ZCML!, although i prefer a well formed ZCML ;-)
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



[Zope3-dev] z3c.form - feature request

2007-07-28 Thread Markus Leist
Hi,

i've patched my z3c.form.browser.text code like this:

[EMAIL PROTECTED]:~/Projekte/dev_Zope_trunk/inst03_small/lib/python/z3c/form$ 
svn diff
Index: browser/text.py
===
--- browser/text.py (Revision 77582)
+++ browser/text.py (Arbeitskopie)
@@ -33,6 +33,8 @@

 def update(self):
 super(TextWidget, self).update()
+if self.required:
+self.addClass('required')
 widget.addFieldClass(self)


to use a:

input.required {
  background-color:#A0;
}

im my css.

so all required fields have an light yellow background.

the right place? may we use this in svn-trunk, too?

Markus

___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



[Zope3-dev] missing render in z3c.formui

2007-07-27 Thread Markus Leist
Hi Roger,
hi Stephan,

may i have found a little error in z3c.formui:

[EMAIL PROTECTED]:~/Projekte/dev_Zope_trunk/inst03_small/lib/python/z3c/formui$ 
svn diff table-form.pt
Index: table-form.pt
===
--- table-form.pt   (Revision 78414)
+++ table-form.pt   (Arbeitskopie)
@@ -70,7 +70,7 @@
 /div
 div class=error
  tal:condition=widget/error
-  span tal:replace=structure widget/error error /span
+  span tal:replace=structure widget/error/render error 
/span
 /div
   /td
 /tr

without .../render in my html-source there is only a:
div class=errorErrorViewSnippet for IpValidError/div

with the render method in table-form.pt:
div class=errordiv class=errorIP-address not ok/div/div

in  div-form.pt that seems to be ok.


Markus
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



[Zope3-dev] international publicity to zope3

2006-10-31 Thread Markus Leist
Hi there,

maybe this is an interesting chance to give international publicity to zope3.
see here:

http://www.plat-forms.org/

I think, the result of such programming contest will bring more transparency in
pros and cons of Zope3 development, which can be published to the world.

Hey, there are really good people in development of Zope3 and the
component-architecture of “our python-application-server” should
be compared to other applications, or? (ok, not new ...)

My own software-developer-skill isn't good enough for this contest.
The results will be published on a high level;
zope3 and the developers can obtain great acceptance, i think.

Any developer there ( 3 developer a 30 h)?

Bye,
Markus Leist
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Solved: [Zope3-dev] persistent data in (not local) utilitiy

2006-01-30 Thread Markus Leist
Ok, getUtility() doesn't work, but:

def bootStrapSubscriberDatabase(event):
[...]
db, connection, root, root_folder = getInformationFromEvent(event)
if ( ensureUtility(root_folder, IIkAdminUtility, 'IkAdminUtility', 
IkAdminUtility, '') ) :
logger.info(Ensure unnamed IkAdminUtility)
sm = root_folder.getSiteManager()
utils = [reg for reg in sm.utilities.registrations()
 if reg.provided.isOrExtends(IIkAdminUtility)]
# [0] is a dirty quick hack
instIkAdminUtility = utils[0].component
instIkAdminUtility.nbrStarts += 1
[...]
transaction.get().commit()
connection.close()

does.

Bye, Markus

Am Freitag 27 Januar 2006 10:20 schrieb Markus Leist:
 Hi all,

 *local* utilities (configured in zcml, right?) are accessible in a
 IProcessStartingEvent-Subscriber:
 (debug-point in my Subscriber  -)
 (Pdb) from zope.app.error.interfaces import IErrorReportingUtility
 (Pdb) myu1=zapi.getUtility(IErrorReportingUtility)
 (Pdb) p myu1.getProperties()
 {'ignored_exceptions': ('Unauthorized',), 'keep_entries': 20,
 'copy_to_zlog': 0} In this case data is not persistent.

 _my_ utility was born in IProcessStartingEvent
 (_after_ commit in IDatabaseOpenedEvent) by ensureUtility(...)

 In this subscriber i don't see any utility which is not local.

 (On IRC-Channel it was asked for permissions to get utility, where
 i have to start debugging?)

 Is there any chance to get an utility not defined in ZCML in this way
 (at start of Zope)? Or to easy store attribute-data in a local utility?

 I have to count all starts of the Zope-Instance (and have to do
 something more).

 Bye, Markus
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



[Zope3-dev] zopectl in linux-ha environment

2006-01-05 Thread Markus Leist
Hello,

I am testing Zope3 in a linux-ha environment. I wrote
a resource.d-file for starting and stopping zope when
system toggles ha-mode.

snipp:
[...]
zope_status () {
  cd $ZOPEDIR   
  ./bin/zopectl status2
  rc=$?
  ha_log info: $0: zope_status1/return=$rc
}
[...]
(attention: 'status2' not 'status')

Result:
[EMAIL PROTECTED] /etc/ha.d/resource.d]# ./zope status
*** Unknown syntax: status2
2006/01/05_14:16:19 info: ./zope: zope_status1/return=0
[...]
(attention: return-code is 0, should be !0)

What is the correct way to get the exit code of zopectl-
script in my shell-script.

In zopectl:
[...]
if __name__ == '__main__':
run()
[...]

What kind of return-statement/exception i have to use?

Is there a chain of this return-/exception-statements for
zopectl - zope.app.twisted.controller.main - zdaemon.zdctl.main - ZDCmd
?

Regards
Markus Leist

ps.
should i post the complete script to this mailing-list?
is there someone else working with linux-ha?
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] LDAP support -- current status?

2005-05-17 Thread Markus Leist
Hello,

can I help?

I've to integrate Zope3 in an existent ldap-environment
here - and, in my opinion, ldap is a main-feature
(e.g. in Identity Management).

That's worth thinking about, or?

Markus


On Wednesday 18 May 2005 00:41 Roger Ineichen wrote:
 Hi Florent

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of Florent Guillaume
  Sent: Wednesday, May 18, 2005 12:29 AM
  To: Dylan Reinhardt
  Cc: zope3-users@zope.org
  Subject: Re: [Zope3-Users] LDAP support -- current status?
 
  I haven't work on ldappas since the last sprint, but I'll start
  working again with LDAP in Zope 3 soon. I'll try to look at that
  tomorrow, but I can't promise anything.
 
  It's unfortunate this (and other) package are living outside
  the main
  Zope tree. I understand the reasons, but I wish we could find a way.
  Could conditionals in zcml help us there ? So that it doesn't get
  included if ldap is not a python package, but still can be the rest
  of the time ? Although it depends on non-core product, it's
  something
  that really should be part of the main tree IMHO.

 I agree,
 such a important standard addon for the PAU should be included in
 the distribution for the future.

 Regards
 Roger Ineichen

  Florent
 
  On 18 May 2005, at 00:10, Dylan Reinhardt wrote:
   I'm getting closer... the reason ldappas is not addable to
 
  PAU is that
 
   it doesn't implement IContainedPrincipalSource.  That was
 
  easy enough
 
   to fix.
  
   It then needs to implement principalInfo, which I attempted to
   implement both as a thin wrapper for get() and as a wrapper
 
  for get()
 
   that returned a PrincipalInfo object similar to the one
 
  implemented in
 
   PrincipalFolder.
  
   Neither approach worked and either way I'm getting unicode decoding
   errors in ldapadapter/utility.py, line 151.   (UnicodeDecodeError:
   'utf8' codec can't decode byte 0x80 in position 3: unexpected code
   byte).
  
   I'm clearly in over my head at this point... it doesn't appear that
   the required changes are easily made, or at least not easily made by
   someone of my skill level.  :-)
  
   Florian, is there any kind of bribe I can offer you to help me out?
   I'm serious.
  
   Dylan
  
   On 5/17/05, Dylan Reinhardt [EMAIL PROTECTED] wrote:
   On 5/17/05, Stephan Richter [EMAIL PROTECTED] wrote:
   On Tuesday 17 May 2005 14:24, Dylan Reinhardt wrote:
   If LDAP auth for PAU exists, or if there is a howto or doc
   explaining
   how to do make ldapauth or ldappas work with PAU, I would greatly
   appreciate a shove in the right direction.
  
   ldappas was developed for PAU, but Jim made some PAU API changes
   in February
   or March that probably make it fail. The fixes should be pretty
   shallow.
  
   Thanks for the quick response and inspiration.
  
   I've made some changes that allow ldappas and ldapadapter to load,
   create compoents and register them, but am a bit stuck after that.
   Here's what changes I've made:
  
   In ldapadapter/browser/configure.zcml:
   Line 18:
   -  class=zope.app.utility.browser.AddRegistration
   + class=zope.app.component.browser.utility.AddRegistration
  
   Line 22:
   - arguments=name interface
   + arguments=name
   + keyword_arguments=interface
  
   In ldappas/configure.zcml:
   Line 14 and 19
   changed zope.app.pas.interfaces to
   zope.app.authentication.interfaces
  
   In ldappas/authentication.py
   Lines 26  27:
   Changed zope.app.pas.interfaces to
   zope.app.authentication.interfaces
  
   Those changes allow ldappas and ldapadapter to load and
 
  then I'm able
 
   to add, configure and register my LDAP adapter and LDAP auth plugin
   components.  It seems to work correctly and the adapter tests OK.
  
   But my pluggable auth utility still can't see the ldap plugin.
  
   I feel like I must be pretty close here... any suggestions
 
  greatly
 
   appreciated.
  
   Thanks,
  
   Dylan
 
  --
  Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of RD
  +33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]
 
 
  ___
  Zope3-users mailing list
  Zope3-users@zope.org
  http://mail.zope.org/mailman/listinfo/zope3-users

 ___
 Zope3-dev mailing list
 Zope3-dev@zope.org
 Unsub:
 http://mail.zope.org/mailman/options/zope3-dev/ml_zope3_dev%40ikom-online.d
e

-- 
IKOM - Ingenieurbüro für Datenschutz und Datensicherheit
Dipl.-Ing. Markus Leist
Fon.: +49 2151 941610 / Fax.: +49 2151 941611
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



[Zope3-dev] Permission in stateful workflow correct?

2005-04-27 Thread Markus Leist
Hi all,

in

src/zope/app/workflow/stateful/browser/instance.py

i've added the following local patch:
Index: instance.py
===
--- instance.py (revision 30205)
+++ instance.py (working copy)
@@ -58,7 +58,7 @@
 
 def listContentInfo(self):
 return map(self._extractContentInfo,
-   IProcessInstanceContainer(self.context).items())
+   
removeSecurityProxy(IProcessInstanceContainer(self.context)).items())
 
 def getWorkflowTitle(self):
 pi = self._getSelWorkflow()
@@ -108,7 +108,7 @@
 
 def _getSelWorkflow(self):
 reqWorkflow = self.request.get('workflow', u'')
-pi_container = IProcessInstanceContainer(self.context)
+pi_container = 
removeSecurityProxy(IProcessInstanceContainer(self.context))
 if reqWorkflow is u'':
 available_instances = pi_container.keys()
 if len(available_instances)  0:

without the patch the workflows.html-view doesn't work for my Users defined in 
pau.

I think, that's not the right place for _not_ testing security-aspects, or?

Markus
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com