Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 18 12:23
  • Jan 18 08:24
  • Dec 02 2021 20:38
    TheLazzziest synchronize #126
  • Dec 01 2021 21:58
    TheLazzziest review_requested #126
  • Dec 01 2021 21:58
    TheLazzziest review_request_removed #126
  • Oct 11 2021 06:32

    pylover on master

    add ExifTransposeProcessor and … Merge pull request #128 from br… (compare)

  • Oct 11 2021 06:32
    pylover closed #128
  • Oct 04 2021 07:27
    YukSeungChan removed as member
  • Sep 29 2021 10:41
    pylover commented #128
  • Sep 27 2021 21:08
    briancappello opened #128
  • Sep 27 2021 04:59

    pylover on master

    improve flask integration Merge pull request #127 from br… (compare)

  • Sep 27 2021 04:59
    pylover closed #127
  • Sep 24 2021 17:32
    briancappello opened #127
  • Sep 15 2021 07:22
  • Sep 05 2021 12:24
    TheLazzziest synchronize #126
  • Sep 05 2021 12:23
    TheLazzziest synchronize #126
  • Aug 23 2021 18:32
    TheLazzziest commented #126
  • Aug 23 2021 11:12
    pylover commented #126
  • Aug 23 2021 04:35
    pylover review_requested #126
loup
@YukSeungChan
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
Dahlia is a perfect guy, he is so clever
This is just continuing of their works
loup
@YukSeungChan
wow awesome.
I'm going to keep going contiribution.
Vahid
@pylover
thanks bro
Vahid
@pylover
@YukSeungChan , I just added you to collaborators,
Please Note: Test-driven-programming, 100% coverage and PEP8.
To release: just tag your commit and push tags:
git commit -m "Feature 1, Closes #34"
git tag v0.9.7
git push origin master --tags
Take care about documentation also, use
versionadded::

versionchanged::
loup
@YukSeungChan
oh.. okay Thx.
loup
@YukSeungChan
@pylover I committed a tag of v0.9.6. I wonder if I did well...
Vahid
@pylover
lol, it's ok, nice
checkout the travis build history: https://travis-ci.org/pylover/sqlalchemy-media/builds
Your release is distributes
loup
@YukSeungChan
Good. Thx!
Vahid
@pylover
just install it by pip and check is working after install
loup
@YukSeungChan
I did upgrade sqlalchemy-media in my personal project. After i ran tests. It works well.
Vahid
@pylover
That's it