Refactored content of main __init__ into utils

This commit is contained in:
2016-01-26 15:34:56 +01:00
parent 8256ab40dc
commit 1a5fcc1744
6 changed files with 293 additions and 288 deletions

View File

@@ -5,8 +5,6 @@ from eve.methods.put import put_internal
from eve.methods.post import post_internal
from flask.ext.script import Manager
from application import app
from application import db
from application import post_item
from manage.node_types.act import node_type_act
from manage.node_types.asset import node_type_asset
from manage.node_types.blog import node_type_blog
@@ -51,6 +49,10 @@ def runserver():
debug=DEBUG)
def post_item(entry, data):
return post_internal(entry, data)
def put_item(collection, item):
item_id = item['_id']
internal_fields = ['_id', '_etag', '_updated', '_created']