endi.views.progress_invoicing package

Submodules

endi.views.progress_invoicing.rest_api module

class endi.views.progress_invoicing.rest_api.ProgressInvoicingChapterRestView(context, request=None)

Bases : BaseRestView

collection_get()
dbsession: DBSESSION
delete()

HTTP DELETE api endpoint

item_route = '/api/v1/progress_invoicing_plans/{id}/chapters/{cid}'
post()

HTTP POST api endpoint

put()

HTTP PUT api endpoint

request: Request
route = '/api/v1/progress_invoicing_plans/{id}/chapters'
session: ISession
class endi.views.progress_invoicing.rest_api.ProgressInvoicingPlanRestView(context, request=None)

Bases : BaseRestView

dbsession: DBSESSION
delete()

HTTP DELETE api endpoint

item_route = '/api/v1/progress_invoicing_plans/{id}'
post()

HTTP POST api endpoint

put()

HTTP PUT api endpoint

request: Request
route = None
session: ISession
class endi.views.progress_invoicing.rest_api.ProgressInvoicingProductRestView(context, request=None)

Bases : BaseRestView

after_flush(entry, edit, attributes)

Allows to modify datas after the main entry was flushed

HTTP POST and PUT calls

Paramètres:
  • entry – The instance added/edited

  • edit (bool) – Is it an edition view ?

  • attributes (dict) – The validated submitted data

collection_get()
dbsession: DBSESSION
delete()

HTTP DELETE api endpoint

get_schema(submitted)

Build the colander schema to be used

Paramètres:

submitted – Data submitted to the api endpoint

Renvoie:

A form schema used to validate the submitted data

item_route = '/api/v1/progress_invoicing_plans/{id}/chapters/{cid}/products/{pid}'
post()

HTTP POST api endpoint

request: Request
route = '/api/v1/progress_invoicing_plans/{id}/chapters/{cid}/products'
session: ISession
class endi.views.progress_invoicing.rest_api.ProgressInvoicingWorkItemRestView(context, request=None)

Bases : BaseRestView

after_flush(entry, edit, attributes)

Allows to modify datas after the main entry was flushed

HTTP POST and PUT calls

Paramètres:
  • entry – The instance added/edited

  • edit (bool) – Is it an edition view ?

  • attributes (dict) – The validated submitted data

collection_get()
dbsession: DBSESSION
delete()

HTTP DELETE api endpoint

item_route = '/api/v1/progress_invoicing_plans/{id}/chapters/{cid}/products/{pid}/work_items/{wid}'
post()

HTTP POST api endpoint

pre_format(datas, edit=False)

Allows to apply pre-formatting to the submitted datas

HTTP POST and PUT calls

Paramètres:
  • datas (dict) – The submitted datas

  • edit (bool) – Is it an edition view ?

request: Request
route = '/api/v1/progress_invoicing_plans/{id}/chapters/{cid}/products/{pid}/work_items'
schema = <colanderalchemy.schema.SQLAlchemySchemaNode object at 140624091428240 (named )>
session: ISession
endi.views.progress_invoicing.rest_api.includeme(config)

endi.views.progress_invoicing.routes module

endi.views.progress_invoicing.routes.includeme(config)

endi.views.progress_invoicing.utils module

endi.views.progress_invoicing.utils.get_progress_invoicing_plan_url(request, plan)

Build urls used to access progress invoicing plan element

Type renvoyé:

dict

Module contents

endi.views.progress_invoicing.includeme(config)