Spike endpoints

Recreating #113
The purpose is for the endpoints to be usable outside of Superdesk
application and to achieve this we have to use standard Eve events.


On Mon, Jun 30, 2014 at 12:18 PM, ioanpocol <notifications@github.com>
wrote:

> In superdesk/base_model.py:
>
> > +            if self.datasource:
> > +                endpoint_schema.update({'datasource': self.datasource})
> > +            if self.item_methods:
> > +                endpoint_schema.update({'item_methods': self.item_methods})
> > +            if self.resource_methods:
> > +                endpoint_schema.update({'resource_methods': self.resource_methods})
> > +            if self.public_methods:
> > +                endpoint_schema.update({'public_methods': self.public_methods})
> > +            if self.url:
> > +                endpoint_schema.update({'url': self.url})
> > +            if self.item_url:
> > +                endpoint_schema.update({'item_url': self.item_url})
> > +            if self.embedded_fields:
> > +                endpoint_schema.update({'embedded_fields': self.embedded_fields})
> > +
> > +        on_insert_event = getattr(app, 'on_insert_%s' % self.endpoint_name)
>
> Why not to use the event infrastructure that exists on SuperdeskDataLayer?
> Or do we have to delete this infrastructure from SuperdeskDataLayer?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/superdesk/superdesk-server/pull/116/files#r14341394>.
>