Coder Social home page Coder Social logo

callowayproject / django-kamasutra Goto Github PK

View Code? Open in Web Editor NEW
22.0 22.0 3.0 715 KB

A application to position objects anywhere on a page.

License: Apache License 2.0

CSS 13.58% JavaScript 0.49% Python 70.55% Shell 3.03% Makefile 3.10% HTML 9.24%

django-kamasutra's People

Contributors

coordt avatar finkedave avatar jsoa avatar justquick avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

django-kamasutra's Issues

setup.py: list.remove(x): x not in list

0.1.9 release is broken
http://pypm.activestate.com/list-d.html#django-kamasutra

stdout:
Traceback (most recent call last):
  File "setup.py", line 11, in <module>
    packages.remove('example')
ValueError: list.remove(x): x not in list
Traceback (most recent call last):
  File "/home/apy/as/pypm-trunk/src/pypm/builder/mason.py", line 92, in build_package
    buildlog, bpkg, wrkdir, pyenv)
  File "/home/apy/as/pypm-trunk/src/pypm/builder/mason.py", line 180, in _build
    raise SetupPyBuildFailed(e)
SetupPyBuildFailed: [SetupPyBuildFailed] non-zero returncode: 1
command: /home/apy/as/pypm-trunk/tmp/env27/bin/python setup.py install --no-compile --root=/tmp/tmpEUVTRE-pypm-django-kamasutra-0.1.9/django-kamasutra-0.1.9/_pypm_install_root
pwd: /tmp/tmpEUVTRE-pypm-django-kamasutra-0.1.9/django-kamasutra-0.1.9
stderr:

stdout:
Traceback (most recent call last):
  File "setup.py", line 11, in <module>
    packages.remove('example')
ValueError: list.remove(x): x not in list

Adding objects to a large position is slow

If a position contains alot of items, adding an item to it is slow. It becomes even slower with more items in the position. This is when we are using add_object, which does some checking and re-ordering on the fly. While having over 500 items in a position is rare, the case where a position is used as a ban or white of users for example, the list may get large. In this case the order does not really matter and the re-order can be neglected

Suggested changes:

  • Add a manager method that just appends to the list taking the next order #
  • Add a bulk add object method that accepts a list of objects and uses the the list order.

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.