Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
loup
@YukSeungChan
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
loup
@YukSeungChan
I was interested sqlalchemy-media in seeing the phrase that is "The main idea comes from dahlia's SQLAlchemy-ImageAttach." Cuz, Dahlia is my mentor in the past.
Vahid
@pylover
Wow, interesting
Most loved korean tv movie in iran is: 주몽
jomoong
Yes the dahlias project is awesome. i used it in one project,
loup
@YukSeungChan
I saw that. It was popular in Korea too.
Vahid
@pylover
but because of creating another table, and additional relationship, it's performing bad on production
So, i started to rewriting it with middlewares: (Analysers, filters) and awesome sqlalchemy mutable's
loup
@YukSeungChan
Does it mean sqlalchemy-media ?
Vahid
@pylover
Another difference is, lazy/deferred store factory, which helps to reduce the memory footprints
media comes from the media, attaching media to sqlalchemy model
I assumed every stream on the web is a media
of-cource local hard-drive also
the next phase of the project is to deal with videos and their complexities