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

List:       pyamf-users
Subject:    Re: [pyamf-users] Client could not read SqlAlchemy object which
From:       Peter Cai <newptcai () gmail ! com>
Date:       2009-07-27 1:54:59
Message-ID: befee6d80907261854k3175dafcm70e0c854c8eb16e1 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Yeah, I am saying that this is a Python AMF client problem.  I will write a
little test code and attach it to the ticket.
On Sun, Jul 26, 2009 at 4:02 PM, Thijs Triemstra | Collab
<lists@collab.nl>wrote:

> Hi,
> I guess you mean something like:
>
> last_activity_time = Column('last_activity_time', TIMESTAMP,
> nullable=False, server_default="2001-01-01 01:01:01")
>
> I opened a ticket [1] to add a timestamp column in the sqlalchemy adapter
> example, and tested it with the patch for the sample and everything worked
> fine with 0.4.2 here. Can you open a ticket with a sample that reproduces
> the error? Or are you saying its a Python AMF client issue cause I haven't
> tested that.
>
> [1] http://pyamf.org/ticket/630
>
> Cheers,
>
> Thijs
>
> On 24 Jul 2009, at 03:42, Peter Cai wrote:
>
> Will get an exception:
>     datetime.datetime' object has no attribute '_sa_instance_state'
>
> Remove the TIMESTAMP column below in the SA object definition,
> will eliminate the problem.
>
>    last_activity_time = Column(TIMESTAMP, nullable=False,
> server_default="2001-01-01 01:01:01")
>
> Flex client doesn't have this problem.
>
> I found this on version 0.4.2
>
> --
> look to the things around you,the immediate world around you, if you are
> alive,it will mean something to you ——Paul Strand
>  _______________________________________________
> PyAMF users mailing list - users@pyamf.org
> http://lists.pyamf.org/mailman/listinfo/users
>
>
>
> _______________________________________________
> PyAMF users mailing list - users@pyamf.org
> http://lists.pyamf.org/mailman/listinfo/users
>
>


-- 
look to the things around you,the immediate world around you, if you are
alive,it will mean something to you ——Paul Strand

[Attachment #5 (text/html)]

Yeah, I am saying that this is a Python AMF client problem.   I will write a little \
test code and attach it to the ticket.<div><br><div class="gmail_quote">On Sun, Jul \
26, 2009 at 4:02 PM, Thijs Triemstra | Collab <span dir="ltr">&lt;<a \
href="mailto:lists@collab.nl">lists@collab.nl</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex;"><div style="word-wrap:break-word">Hi,<div><br></div><div>I \
guess you mean something like:</div><div><br></div><div><div \
style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"> \
last_activity_time = Column(<span \
style="color:#1c00cf">&#39;last_activity_time&#39;</span>, TIMESTAMP, nullable=False, \
server_default=<span style="color:#c41a16">&quot;2001-01-01 \
01:01:01&quot;</span>)</div><div \
style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"> \
<br></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font \
face="Helvetica"><span style="font-size:medium">I opened a ticket [1] to add a \
timestamp column in the sqlalchemy adapter example, and tested it with the patch for \
the sample and everything worked fine with 0.4.2 here. Can you open a ticket with a \
sample that reproduces the error? Or are you saying its a Python AMF client issue \
cause I haven&#39;t tested that.</span></font></div> <div \
style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font \
face="Helvetica"><span style="font-size:medium"><br></span></font></div><div \
style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"> <font \
face="Helvetica"><span style="font-size:medium">[1]  <a \
href="http://pyamf.org/ticket/630" \
target="_blank">http://pyamf.org/ticket/630</a></span></font></div><div \
style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"> <font \
face="Helvetica"><span style="font-size:medium"><br></span></font></div><div \
style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font \
face="Helvetica"><span style="font-size:medium">Cheers,</span></font></div> <div \
style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font \
face="Helvetica"><span style="font-size:medium"><br></span></font></div><div \
style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"> <font \
face="Helvetica"><span style="font-size:medium">Thijs</span></font></div><div \
style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font \
face="Helvetica"><span style="font-size:medium"><br></span></font></div> \
<div><div><div></div><div class="h5"><div>On 24 Jul 2009, at 03:42, Peter Cai \
wrote:</div><br></div></div><blockquote type="cite"><div><div></div><div \
class="h5">Will get an exception:<div><br></div><div>       datetime.datetime&#39; \
object has no attribute &#39;_sa_instance_state&#39;</div> <div><br></div><div>Remove \
the TIMESTAMP column below in the SA object definition, will  eliminate the \
problem.</div> <div><br></div><div>     last_activity_time = Column(TIMESTAMP, \
nullable=False, server_default=&quot;2001-01-01 01:01:01&quot;)</div> \
<div><br></div><div>Flex client doesn&#39;t have this problem.</div><div><br><div>I \
found this on version 0.4.2</div> <div><br>-- <br>look to the things around you,the \
immediate world around you, if you are alive,it will mean something to you ——Paul \
Strand<br>  </div></div></div></div> \
_______________________________________________<br>PyAMF users mailing list - <a \
href="mailto:users@pyamf.org" target="_blank">users@pyamf.org</a><br><a \
href="http://lists.pyamf.org/mailman/listinfo/users" \
target="_blank">http://lists.pyamf.org/mailman/listinfo/users</a><br> \
</blockquote></div><br></div></div><br>_______________________________________________<br>
 PyAMF users mailing list - <a href="mailto:users@pyamf.org">users@pyamf.org</a><br>
<a href="http://lists.pyamf.org/mailman/listinfo/users" \
target="_blank">http://lists.pyamf.org/mailman/listinfo/users</a><br> \
<br></blockquote></div><br><br clear="all"><br>-- <br>look to the things around \
you,the immediate world around you, if you are alive,it will mean something to you \
——Paul Strand<br> </div>



_______________________________________________
PyAMF users mailing list - users@pyamf.org
http://lists.pyamf.org/mailman/listinfo/users


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

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