Happens on gae dev environment and on the normal gae server.

On Feb 7, 2:18 am, Jon Romero <darks...@gmail.com> wrote:
> Some thing happens to me. When I do:
> db(db.table.id == some_id_that_exists).delete, I get the same count
> error
>
> On Feb 4, 3:16 am, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > do you use 2.5 or something else locally?
>
> > On Feb 3, 6:11 pm, Carl <carl.ro...@gmail.com> wrote:
>
> > > This may be related toGAEupdate_record() has subtle difference
> > > compared to native 
> > > Web2Pyhttp://groups.google.com/group/web2py/browse_thread/thread/a69afded01...
> > > but until shown otherwise, I've posed separately.
>
> > > I have this in db.py:
>
> > > db.define_table('team_user',
> > >                 Field('teamId', 'integer', notnull=True,
> > > required=True),
> > >                 Field('user_email', 'string', length=254,
> > > notnull=True, required=True,
> > >                          requires = [IS_LOWER(),IS_EMAIL()]),
> > >                 Field('live', 'boolean', notnull=True, required=True,
> > > default='True'),
> > >                 Field('cDate', 'datetime'),
> > >                 Field('mDate', 'datetime'))
>
> > > I make this call:
> > > self.db(self.db.team_user.id==memberId).delete()
>
> > > such a statement callsdelete(self) in gql.py
> > >     defdelete(self):
> > >         self._db['_lastsql'] = 'DELETEWHERE %s' % self.where
> > >         (items, tablename, fields) = self._select()
> > >         tableobj = self._db[tablename]._tableobj
> > >         counter = items.count()
> > >        gae.delete(items)
> > >         return counter - items.count()
>
> > > When the interpreter exectutes "counter = items.count()" an exception
> > > is thrown stating "TypeError: count() takes exactly one argument (0
> > > given)"
>
> > > Have I something in my db.py definition that native web2py is happy
> > > with but dev_appserver chokes on?

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to