Git Product home page Git Product logo

fnkr / poss Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 1.0 491 KB

Personal Object Sharing System, a little bit like a URL shortener but with the ability to share images, code and files directly. Written in Python with Flask and SQLAlchemy.

Home Page: https://github.com/fnkr/POSS

License: MIT License

Python 57.45% CSS 5.30% JavaScript 10.36% HTML 25.78% Mako 0.26% Dockerfile 0.53% Shell 0.04% Batchfile 0.27%
file-sharing

poss's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar fnkr avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

sumonst21

poss's Issues

maintenance fails: AttributeError: 'NoneType' object has no attribute 'startswith'

$ ./env/bin/python manage.py maintenance
Traceback (most recent call last):
  File "manage.py", line 22, in <module>
    manager.run()
  File "/home/poss/poss/env/lib/python3.4/site-packages/flask_script/__init__.py", line 412, in run
    result = self.handle(sys.argv[0], sys.argv[1:])
  File "/home/poss/poss/env/lib/python3.4/site-packages/flask_script/__init__.py", line 383, in handle
    res = handle(*args, **config)
  File "/home/poss/poss/env/lib/python3.4/site-packages/flask_script/commands.py", line 216, in __call__
    return self.run(*args, **kwargs)
  File "manage.py", line 20, in maintenance
    maintenance()
  File "/home/poss/poss/app/maintenance/__init__.py", line 18, in maintenance
    maintenance_file_deleted_from_datadir()
  File "/home/poss/poss/app/maintenance/__init__.py", line 50, in maintenance_file_deleted_from_datadir
    if not os.path.isfile(object.filepath()):
  File "/home/poss/poss/app/objects/models.py", line 128, in filepath
    return os.path.join(current_app.config['DATA_DIR'], self.fid)
  File "/home/poss/poss/env/lib/python3.4/posixpath.py", line 80, in join
    if b.startswith(sep):
AttributeError: 'NoneType' object has no attribute 'startswith'

URL replacements for link objects

e.g.

https://poss/googlesearchobject?query=test

=>

https://www.google.com/search?q={$query}

=>

https://www.google.com/search?q=test

Use case: use POSS for Domains that may change in future.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.