Did I find the right examples for you? yes no

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

        def store_itemversion(dbsession, **kwargs):
    import re
    from htmlentitydefs import name2codepoint

    contents = kwargs.get("contents")
    item_id = kwargs.get("id")
    timestamp = kwargs.get("timestamp")
    tags = kwargs.get("tags")

    if contents is not None:
        def replace_special_char(match):
            try:
                return unichr(name2codepoint[match.group(1)])
            except KeyError:
                return match.group(0)

        contents = re.sub(r"(?
    


src/s/y/synoptic-2013.1/synoptic/__init__.py   synoptic(Download)
from synoptic.datamodel import \
        Item, ItemVersion, Tag, ViewOrdering, ViewOrderingEntry, \
        store_itemversion,  \
        get_current_itemversions_join, \
        query_itemversions
        idx += 1  # skip separator
 
        store_itemversion(dbsession, 
                contents="\n".join(body), tags=tags, timestamp=timestamp)
 
                    raise RuntimeError("invalid tag")
 
        itemversion = store_itemversion(request.dbsession,
                **data)