Where communities thrive


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

    pylover on master

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

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

    pylover on master

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

  • Sep 27 04:59
    pylover closed #127
  • Sep 24 17:32
    briancappello opened #127
  • Sep 15 07:22
  • Sep 05 12:24
    TheLazzziest synchronize #126
  • Sep 05 12:23
    TheLazzziest synchronize #126
  • Aug 23 18:32
    TheLazzziest commented #126
  • Aug 23 11:12
    pylover commented #126
  • Aug 23 04:35
    pylover review_requested #126
  • Aug 23 04:30
    farzaneka removed as member
  • Aug 22 15:36
    TheLazzziest edited #126
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
so wait for issue, lol
thanks to travis, coveralls, and pypi
loup
@YukSeungChan
Haha, I have used sqlalchemy-media with flask. Flask default file of form was FileStorage of werkzeug.
I expected to select CgiFieldStorageDescriptor in AttachableDescriptor. But It just select StreamDescriptor. So i have problem that descriptor didn't get original_filename.

Now, I just use like below code.

class Image(BaseImage):
     @classmethod
     def create_from_file_storage(cls, file_storage: FileStorage, **kwargs):
        assert isinstance(file_storage, FileStorage)

        instance = cls()
        kwargs['original_filename'] = file_storage.filename
        return instance.attach(file_storage, **kwargs)

I don't know if sqlalchemy-media should support flask.

Vahid
@pylover
The original filename is not mandatory, and it's sent via multipart header
Vahid
@pylover
Please add chang log also
loup
@YukSeungChan

Hello @pylover, It's been a while.

Are there any plan for version update ?

Vahid
@pylover
Hi, @YukSeungChan . Yes, agree with you
Thanks for OS2 store. you are awesome
Vahid
@pylover
Ther version 0.10.1 is up
loup
@YukSeungChan
Thanks :D
Meyti
@meyt
Hi, @pylover, We have an application with filesystem-store, is it possible to migrate another one? i think yes, but it's hard! why?! stores not desgined for handle all exceptions, refered to #78, i handle FileNotFoundError in my project but when changing store to ssh or s3 ... this exception are useless and must i write exception for every single stores!
for solving situtations such this, i think handle all exceptions in stores to sqlalchemy-media related exceptions. @pylover whats your idea?
Vahid
@pylover
What you mean, How to handle?
If we're handling an exception, we must do something
This is an implicit behavior. If a file is missing, then a bad situation is happened.
To migrate stores you can Write another script, to remove files from one store and add to another one
From the zen of python: Explicit is better than implicit.
You messed up your deploy env and trying to solve it by manipulating the app code. please Do not mix concepts
Meyti
@meyt
:+1:
Amin Etesamian
@eteamin
sqlalchemy-media<3
Meyti
@meyt
image.png
fun with snippets :)) sqlalchemy + sqlalchemy-media + nanohttp <3
Amin Etesamian
@eteamin
@meyt like