Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
Vahid
@pylover
Hi
loup
@YukSeungChan
Hello !
Vahid
@pylover
Hello
loup
@YukSeungChan
umm I want to fix this issue: pylover/sqlalchemy-media#64
Vahid
@pylover
Thanks a lot bro
I appreciate that
loup
@YukSeungChan
I can't do anything about that problem. But i didn't know well python typing.
Why does that error occur?
Vahid
@pylover
Here is working well, i cannot reproduce the error
Oh. please update your python to 3.5.2
or higher
python 3.6 just released as rc1
loup
@YukSeungChan
okay i'll try
loup
@YukSeungChan
Oh. Good working on 3.5.2 or higher
Thx
loup
@YukSeungChan
@pylover Hello
Vahid
@pylover
Hello
How are u ?
I missed to thank you about the contribution to sqlalchemy-media
So, thank you a lot
loup
@YukSeungChan
HAHA Thank you. It was fun.
Recently, I got curious about using sqlalchemy-media.
why didn't use thumbnail_type of Image class ?
I set a thumbnail_type to custom Thumbnail class. but it was not working.
Is it just missing feature?
Vahid
@pylover
ok, w8 i check it
may be
Yes, it missed
Could you please add an issue for that ?
loup
@YukSeungChan
okay
And I have one more question.
Vahid
@pylover
Fixed:, pylover/sqlalchemy-media#67
and released
ask please
loup
@YukSeungChan
I have error when delete image that have thumbnails.
code
    with StoreManager(db.session, delete_orphan=True):
        with db.session.begin():
            item = Item.create(
                image=ItemImage.create_from(
                    'https://www.python.org/static/img/python-logo@2x.png'),
                type=ItemType.gifticon,
                name='test',
                price=100,
                is_sell=True
            )
            thumb = item.image.get_thumbnail(ratio=.3, auto_generate=True)
        with db.session.begin():
            db.session.delete(item)
error
Vahid
@pylover
what is the error ?
loup
@YukSeungChan
Traceback (most recent call last):
  File "/Users/loup/.pyenv/versions/momo-3.5.2/lib/python3.5/site-packages/sqlalchemy/orm/session.py", line 564, in __exit__
    self.commit()
  File "/Users/loup/.pyenv/versions/momo-3.5.2/lib/python3.5/site-packages/sqlalchemy/orm/session.py", line 468, in commit
    self.session.dispatch.after_commit(self.session)
  File "/Users/loup/.pyenv/versions/momo-3.5.2/lib/python3.5/site-packages/sqlalchemy/event/attr.py", line 218, in __call__
    fn(*args, **kw)
  File "/Users/loup/.pyenv/versions/momo-3.5.2/lib/python3.5/site-packages/sqlalchemy_media/stores.py", line 458, in on_commit
    f.delete()
AttributeError: 'dict' object has no attribute 'delete'
Vahid
@pylover
Could you please make a issue with this code and the error details: (stacktrace & etc...)
loup
@YukSeungChan
Okay
Vahid
@pylover
tnx
I'm appreciate your contiribution
loup
@YukSeungChan
sqlalchemy-media very useful. thx
Vahid
@pylover
thank you for using it
Where are you from? china, korea, japan ?
I got it, IUM SOCIUS, a startup based in Korea, is a leader and pioneer in Social Dating services across ...
We are seeing the koran tv serials here, my gf loves that
At all, you are not so strange for us. must of our cultures are the same
loup
@YukSeungChan
oh really? haha I'm from korea.
Vahid
@pylover
yes, believe me