Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge existing fixes and some new performance enhancements #6

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

JimPatterson
Copy link

I have gathered up other people's fixes I found on GitHub and made a few improvements like:

  • supporting egg distributions

  • Removed a check for a null json_dumps that can never be null.

  • Only wrap the callback if there is something to be done to the callback.

  • Remove support for returning lists.
    Due to security problems in browsers, it is not advisable to return
    lists as the top level item in a JSON response to a GET request.

    Removing the default support for it, so in scenarios where it would be
    supportable (POST for example), it is better to be explicit about what
    is happening. See
    http://haacked.com/archive/2009/06/24/json-hijacking.aspx for details
    on the problem.

  • Small cleanups for pep8 and pep257

I bumped the version number in the setup to 0.2.1.2, and if you accept this pull request, it would be great if you could push an update to PyPI.

centum and others added 11 commits May 2, 2013 10:34
Merge MongoReplicaClient support from centum
…ngodb-plugin into pklaus-error-message-fix

Conflicts:
	bottle_mongo.py
Plugins and Bottle Framework to PyPI's classifiers
* Removed a check for a null json_dumps that can never be null.

* Only wrap the callback if there is something to be done to the callback.

* Remove support for returning lists.
  Due to security problems in browsers, it is not advisable to return
  lists as the top level item in a JSON response to a GET request.

  Removing the default support for it, so in scenarios where it would be
  supportable (POST for example), it is better to be explicit about what
  is happening.  See
  http://haacked.com/archive/2009/06/24/json-hijacking.aspx for details
  on the problem.

* Small cleanups for pep8 and pep257
Bottle applies a uniqueness filter to the plugins when applying them,
so to support multiple instances of the same plugin, each instance
needs a unique name.
This lets the user add things like the SONManipulators to the database
object created by the plugin.
@avelino
Copy link

avelino commented Mar 11, 2014

Hey guys, talk about bottle-mongodb with bottle core team, like this this for over 2 years without contributions we create a new project (fork) in the organization of the bottle!

new project: https://github.com/bottlepy/bottle-mongo

history: bottlepy/bottle-extras#24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants