assuming no errors, in which case you'll get rollback method calls, or
subtransactions.
a call to tpc_begin signals the begin of the two-phase commit. than
comes a call to commit, next tpc_vote, and finally tpc_finish.
kapil
Ender wrote:
>
> Nitin Borwankar wrote:
> >
> >
> > > I've mentioned
You can gain some enlightenment from these two documents:
http://www.zope.org/Members/Zen/GenericUserFolder/walkthrough
http://www.zope.org/Members/jok/SQL_based_LoginManager
--- "Jason C. Leach" <[EMAIL PROTECTED]> wrote:
> hi,
>
> So I have LoginManager installed. The easy part. Now I'd like
hi,
Also, I'm not sure what this instruction ment:
- If you want to log in a user from another page, create a form which
posts fields called __ac_name and __ac_password to a method which
doesn't have anonymous user access. (see the example loginForm for an
example)
Thanks,
j.
...
hi,
Those instructions got the ball roling. I have not got it going yet, but
am getting close.
Where do I put my login forms? In the same folder as the acl_users
(LoginManager), or inside the acl_users (LoginManager)?
I have just taken your example and hard coded a user in for now:
def userAut
hi,
I found that Single quote ( ' ) cannot be stored in gadfly database table.
If I use that as a part of the string in any SQL variable I will get an
error.
If u have any idea please let me know.
thanks
bye
yours,
K.H.Subrahmanyan
( [EMAIL PROTECTED] )
I'm trying to emulate some DTML methods with python
code in my (python) product.
Let's say I have two Python classes, one named Foo,
the other Bar. Something like this:
class Foo(Folder.Folder, Persistent,
Implicit):
meta_type = "Foo"
def magic(self,
client=None):
"mag
Nitin Borwankar wrote:
>
>
> > I've mentioned two-phase commit to Digicool people. Not sure whether it's
> > already inside Zope or not, but it seems not. Zope's TM (Transaction
> > Machinery) does not seem to be two-phase. See the TM.py file itself: it only
> > has
> >
> > def _finish(self)
Tim Cook wrote:
> NOT TESTED, but simialr to something I do:
>
>
>
>
>
>
Hmmm, doesn't seem to be working (also results in class1 and class2
being at same level). I'll take a look at some other examples.
Thanks for the help (and quick replies).
_
Can some one explain how the Define Permissions screen works. I really don't
understand the concept behind it, what does it mean for a permission setting
to own a permission?
All I need to do is to make certain ZClass methods have a certain level of
security and the other methods of the class hav
* Jason C. Leach <[EMAIL PROTECTED]> [001126 20:46]:
> hi,
>
> So I have LoginManager installed. The easy part. Now I'd like to know how
> to use it. To start with, I'd like to authenticate against a standard
> acl_users folder or a plane text file w/ username/passwords in it.
OK, I've just st
> I've mentioned two-phase commit to Digicool people. Not sure whether it's
> already inside Zope or not, but it seems not. Zope's TM (Transaction
> Machinery) does not seem to be two-phase. See the TM.py file itself: it only
> has
>
> def _finish(self):
> self.db.commit()
>
> That
>
> If you know where to get more info on XA/TX, could you provide some
> pointers?
Search for XA on Amazon - you can buy a copy of the Spec.
It takes a while to ship 2-3 weeks I think.
Also look at the specs for the JTA, Java Transaction API. There are some
references there.
Nitin.
>
>
Jason C. Leach writes:
> How can I authenticate a user from a form. Pretty much exactly how
> zope.org logges you in?
>
> I have looked at both zope.org's login and logged_in (the action for
> login) and don't see where it actually goes and checks the
> username/password?
This check is perf
Kyler B. Laird writes:
> I have a simple DTML method:
>
>
>
>
> I can go through the management interface to create
> and destroy folders, but as soon as I view this
> method, (it tries to reauthenticate me and) I get:
> Zope Error
>
> Zope has encoun
Daryl Stultz wrote:
> I want class2 to be created INSIDE of the class 1 instance. Instead,
> class2 (always with an id of "myClass2") is created at the same level as
> the class1 instance. How do I change the namespace to get the class2
> instance inside class1?
NOT TESTED, but simialr to somet
Anders Eriksson writes:
> DM> ... use "document_src" to view the source ...
>
> AFAIU there is two problems with using document_src directly
> 1) I can't use the html_quote param
You do not need to (unless you are interested in standard wrapping
for e.g. corporate identity or navigation).
"do
>1) EJB's are TRANSACTIONAL components (MTS components are also
>transactional)
Thanks for your comments. Transaction certainly is one of the important
features of EJB. But my personal opinion is that instance pooling
(multi-threading) is even more important. If you have to implement a
compone
Daryl Stultz wrote:
>
> Tim Cook wrote:
>
> > But, If you subclass OFS:Folder when building CDLibrary and
> > CDManager then they can 'contain' other objects.
> > A HOWTO that really helped me was the one on building a Job
> > Board.
>
> Yes, that's precisely where I started, however, the actua
Hi Folks,
I have a product folder called "TestClass" with 2 ZClasses: class1 and
class2.
The following is an exerpt from the class1 constructor:
I want class2 to be created INSIDE of the class 1 instance. Instead,
class2 (always with an id of "myClass2") is created at the same level as
t
All,
I have been tracking this discussion for a while and need to point out
some major facts about EJB's that seem to have been missed. Yes, EJB's
are componentized and run in a container but that's not all.
1) EJB's are TRANSACTIONAL components (MTS components are also
transactional)
That i
hi,
So I have LoginManager installed. The easy part. Now I'd like to know how
to use it. To start with, I'd like to authenticate against a standard
acl_users folder or a plane text file w/ username/passwords in it.
I just have no idea how to get cracking on this since the documentation
on Logi
In the folder where dosomething_pym (Python Method) is located, is also a string
property set called 'en' with the value 'English'
The Python Method object is called with no parameters, but is defined with the 'self'
parameter inside the Python Method object.
In a DTML Method this works fine:
Tim Cook wrote:
> But, If you subclass OFS:Folder when building CDLibrary and
> CDManager then they can 'contain' other objects.
> A HOWTO that really helped me was the one on building a Job
> Board.
Yes, that's precisely where I started, however, the actual product is a
job_board_entry. What I
Hi Johan,
> Does anybody have a good suggestion how to
> develope SQL Method ftfs (through the filesystem)
> rather than ttw.
>
> Perferably in someway similare to the HTMLFile way
try something like this:
from Products.ZSQLMethods.SQL import SQL
import PoPy
def manage_add_user(self,em
Daryl Stultz wrote:
>
> Hi folks, I am yet another Zope newbie.
>
> I am trying to create a ZClass hierarchy.
> Let's say I have a CDLibrary. Every CDLibrary has a CDManager (just one)
> and the CDManger holds all the CDEntry items. (The CDLibrary may have
> parts other than the CDManager, like
I've discovered another possible solution to your problem. In a DTML
Method change
to
where foo is the id of a DTML Method. Then within standard_html_header,
the variables title and id will refer to foo's id and title.
Cheers,
Chris
___
Hello Bill,
Now this _is_ cool. I had tried 0.75 in the past and had lots of problems.
Version 0.78 is a real drop-in, like what I was dreaming of. Thank you very
much for your efforts so far. I recommend the Membership product to everyone
looking for a ready-to-use authentication and personaliza
Chris Gray wrote:
>
> I can pinpoint the problem a bit more.
>
> select
> relname, relowner, relpages, reltuples, relhasindex, relisshared, relkind,
> relnatts, relchecks, reltriggers, relukeys, relfkeys, relrefs, relhaspkey,
> relhasrules, relacl
> from pg_class
>
> works fine but
>
> select
From: "Jochen Knuth" <[EMAIL PROTECTED]>
> Products/DC/PythonMethod
>
> at the moment, i don't know if the new name will result in a new
directory.
I expect to check it into the Zope2 core trunk under
lib/python/Products/PythonScripts when I get back from Thanksgiving
vacation.
Cheers,
Evan @ d
From: "Chris Withers" <[EMAIL PROTECTED]>
> Is there going to be a python methdos help tab eventually?
Help is on the way.
> If I specify parameters 'wibble, fish', and then do:
>
>
>
> ...will wibble='wibble' and fish=1 in the method?
Yep. Parameters work normally.
> Will the bound names st
From: "Steinar Rune Eriksen" <[EMAIL PROTECTED]>
> Would it be useful to (or rather, is it possible to) let one of these
> scripts call up another one ?
Sure. From one of the Python Scripts you just write something like:
answer = context.otherscript(1.3, 'foo')
...where context is bound to the
Hi folks, I am yet another Zope newbie.
I am trying to create a ZClass hierarchy.
Let's say I have a CDLibrary. Every CDLibrary has a CDManager (just one)
and the CDManger holds all the CDEntry items. (The CDLibrary may have
parts other than the CDManager, like a label maker or something- but
tha
I have a simple DTML method:
This is the Document
in the Folder.
Welcome, !
You have these roles: .
I created a folder!
It requires "Manager" to view. When I run
From: Edward Muller
>I am working on a product in which one of the objects keeps an array. I've
>already overcome the problems with making the array persistent (i.e. by not
>using .append, but intead re-assigning the array each time). Anyway...I
>digress..
It is probably easier to write:
self._
alan runyan <[EMAIL PROTECTED]> said:
>[...]. There are plenty JAVA
>programmers, with years of experience.
... for some value of 'experience'...
>[...] (forget this all inclusive
>stuff - thats why Vignette is getting a bad reputation).
>
Java, on the other hand, has had five years of th
35 matches
Mail list logo