[Zope-Perl] Alpha 3

Gisle Aas gisle@ActiveState.com
15 Aug 2000 10:44:40 +0200


Maarten Slaets <mslaets@information-innovation.com> writes:

> Gisle Aas wrote:
> > 
> > A new release is now available from:
> > 
> >   http://www.ActiveState.com/download/Zope-Perl/zope-perl-0.1.a3.tar.gz
> > 
> > Changes since a2 are:
> > 
> >    Moved API methods out of the Python::Object namespace
> >    and made them plain functions in the Python:: namespace.
> >    This remove stupid limitation of what real attributes names
> >    can be used safely with the AUTOLOAD mapping.
> > 
> >    Python::Object constructors are now plain functions like
> >    long(), list(), dict() in the Python:: namespace.
> > 
> >    Overloading of hash/array/call deref for Python::Object.
> >    It means $list->[0], @list, $dict->{foo}, %$dict, and
                             ^
                             There should have been a dollar in there :-(

> >    $callable->($arg1, $arg2) now all work.
> 
> 
> great. this solves my last question about reading unknown fields of a
> form:

Good.

> my $REQUEST = shift;

If this is a PerlMethod (not an External one), you will not need this
assignment to $REQUEST as it is already done for you if "REQUEST" was
in the parameter list.

> foreach $key (keys %{$REQUEST->form}) {
>   $ret .= "$key = " . $REQUEST->{$key} . "\n";
>   
> }
> $ret;

Regards,
Gisle