[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mason
Subject:    RE: [Mason] $m->count Doesn't Work
From:       Jonathan Swartz <swartz () pobox ! com>
Date:       2001-06-21 16:53:09
[Download RAW message or body]

Wow, you're right - that doesn't work at all!

It was broken in version 0.88 by this change:

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/mason/mason/dist/lib/HTML/Mas
on/Request.pm?rev=1.39&content-type=text/vnd.viewcvs-markup

Filed as bug #265.

Jon

> -----Original Message-----
> From: mason-users-admin@lists.sourceforge.net
> [mailto:mason-users-admin@lists.sourceforge.net]On Behalf Of David
> Wheeler
> Sent: Thursday, June 21, 2001 7:11 AM
> To: mason-users@lists.sourceforge.net
> Cc: Garth Webb
> Subject: [Mason] $m->count Doesn't Work
>
>
> Hey All,
>
> I found a need to use $m->count, but it doesn't seem to work. I just
> returns 1 every time. Looking at Request.pm, it looks like the Mason
> object is instantiated on every request, and therefore count is always set
> to its default -- 0 -- and then incremented. May I suggest that you
> actually store count in a package-level (package or lexical) variable and
> return that?
>
> Thanks,
>
> David
>
> --
> David Wheeler                                         AIM: dwTheory
> David@Wheeler.net                                     ICQ: 15726394
>                                                    Yahoo!: dew7e
>                                                    Jabber:
> Theory@jabber.org
>
>
> _______________________________________________
> Mason-users mailing list
> Mason-users@lists.sourceforge.net
> http://lists.sourceforge.net/lists/listinfo/mason-users


_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mason-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic