[PonyORM-list] show() not printing LongStr

Alexey Malashkevich alexeymalashkevich at gmail.com
Wed Dec 10 09:31:00 UTC 2014


Hi Chris,

I just tried the following example:


from pony.orm import *

db = Database()

class Entity1(db.Entity):
    attr1 = Required(LongStr)

db.bind('sqlite', ':memory:')
db.generate_mapping(create_tables=True)

show(Entity1)


And below is the output which I get:


class Entity1(Entity):
    id = PrimaryKey(int, auto=True)
    attr1 = Required(LongStr)

attr1 has type LongStr and it is displayed when I call show() for the
Entity1. Could you provide your code snippet where it doesn't?


Regards,
Alexey

On Tue, Dec 9, 2014 at 5:44 PM, Chris Wood <c.c.wood at gmail.com> wrote:

> Hello all,
>
> I've discovered that if I set an attribute to have a type of LongStr,
> then calling show() on an entity of that class won't show that
> attribute - I couldn't find this documented anywhere; is it a known
> feature?
>
> Cheers,
> Chris
> _______________________________________________
> ponyorm-list mailing list
> ponyorm-list at ponyorm.com
> /ponyorm-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </ponyorm-list/attachments/20141210/ee4a6683/attachment.html>


More information about the ponyorm-list mailing list