I suggest putting an import pdb; pdb.set_trace() before the execute
statement to inspect the type of WHChapter (and see for yourself that
it is incorrect :)
Jerry
On Jul 15, 1:12 pm, "JOLINY" <[EMAIL PROTECTED]> wrote:
> Since i develope my application with pylons ,i have this question.
> when i want to do the update action to database.
> i use this method like this:
> def delt(self,id):
> systemtime=h.getSystemTime()
> userid=session['USER_KEY'].wh_userid
>
> meta.Session.execute(wh_chapter.WHChapter.update(values={del_flg:'1',update_time:systemtime}))
> meta.Session.commit()
> return redirect_to('/ma003')
> there is an error like this:
> <type 'exceptions.AttributeError'>: type object 'WHChapter' has no
> attribute 'update'
> but i read the doc
> inhttp://www.sqlalchemy.org/docs/05/sqlexpression.html#sql_updatehas the same
> operate.
>
> I want to do this operation:
> update whchapter set del_flg='1', update_time=systemtime where
> userid="001" and chapterid="0003"
> who can tell me how to do it.
>
> thanks very much.
>
> joliny
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---