Re: INSTANCE_HOME

Peter Zechmeister <[email protected]>
Newsgroups gmane.comp.web.zope.german
Message-ID <[email protected]>
Thanx!


External Method (Direkt per Scirpt(Python) gehts nicht. Dürfte
restricted sein):

from App.config import getConfiguration
def getConfigItem(s):
 if s == 'all':
   return getConfiguration()
 else:
   return getattr(getConfiguration(),s)

Grü
PeterZ

Am Montag, den 27.04.2009, 11:47 +0200 schrieb Andreas Jung:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Untested:
> 
> from App.config import getConfiguration
> print getConfiguration().instance_home


> 
> Andreas
> Am 27.04.2009 um 11:22 schrieb Peter Zechmeister:
> 
> > Hi,
> >
> > Kann mir bitte rasch wer sagen, wie ich den Pfad zum INSTANCE_HOME mit
> > einem Script(Python) oder auf Produktebene bekomme? Ich will dort
> > hinloggen.
> >
> > Oder noch besser... Wie schreibe ich ins event.log?
> >
> > Grü
> > PeterZ
> >
> >
> >
> >
> >
> > _______________________________________________
> > zope mailing list
> > [email protected]
> > https://mail.dzug.org/mailman/listinfo/zope
> 
> 
> Mit freundlichen Grüßen/Kind regards,
> Andreas Jung
> 
> - ---
> ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
> Web: www.zopyx.com - Email: [email protected] - Phone +49 - 7071 - 793376
> Registergericht: Amtsgericht Stuttgart, Handelsregister A 381535
> Geschäftsführer/Gesellschafter: ZOPYX Limited, Birmingham, UK
> - ------------------------------------------------------------------------
> E-Publishing, Python, Zope & Plone development, Consulting
> 
> 
> 
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (Darwin)
> 
> iEYEARECAAYFAkn1fzEACgkQCJIWIbr9KYxUPQCffF7h/MLwpf4nhSKCoG9oK+In
> 3p0An23XgJ/83znW0JH+kFAJHOO0Kg37
> =R6e4
> -----END PGP SIGNATURE-----
> 
> 
> _______________________________________________
> zope mailing list
> [email protected]
> https://mail.dzug.org/mailman/listinfo/zope
-- 
Die Fabrik der Zukunft wird nur zwei Angestellte haben: einen Mann und
einen Hund. Der Mann ist dafür da, den Hund zu füttern. Der Hund ist
dafür da, den Mann daran zu hindern, den Computer zu berühren.
W. G. Bennis



_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.