Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

src/s/u/support-1.0/support/core/impl/configuration.py   support(Download)
'''
 
from sql_alchemy.support.util_service import SessionSupport, buildQuery, \
    iterateCollection, insertModel, updateModel
from support.meta.configuration import WithConfiguration
        '''
        assert isinstance(configuration, Configuration), 'Invalid configuration'
        updateModel(self.Configuration, configuration, targetId=targetId)
 
    def delete(self, targetId, name):

src/s/u/superdesk-post-1.0/superdesk/post/impl/post.py   superdesk-post(Download)
from superdesk.source.meta.source import SourceMapped
from sqlalchemy.sql.functions import current_timestamp
from sql_alchemy.support.util_service import iterateCollection, buildQuery, \
    insertModel, updateModel
from ally.api.error import IdError, InputError
        if post.UpdatedOn is None: post.UpdatedOn = current_timestamp()
        post = self._adjustTexts(postDb)
        updateModel(post)
 
    def delete(self, id):
        if not postDb or postDb.DeletedOn is not None: return False
        postDb.DeletedOn = current_timestamp()
        updateModel(postDb)
        return True