def list_subscriptions(document_class, sub_id_start='', topic=None, max_results=DEFAULT_LIST_SUBSCRIPTIONS_MAX_RESULTS, expires_before=None):
 from google.appengine.ext import db
 if issubclass(document_class, db.Model):
  topic = _get_document_topic(document_class, topic)
 elif issubclass(document_class, datastore.Entity):
  if (not topic):
   raise TopicNotSpecified()
 else:
  raise DocumentTypeError()
 return prospective_search_admin.list_subscriptions(topic, max_results, None, sub_id_start, expires_before)

def list_subscriptions ( document_class , sub_id_start = '' , topic = None , max_results = DEFAULT_LIST_SUBSCRIPTIONS_MAX_RESULTS , expires_before = None ) : from google . appengine . ext import db if issubclass ( document_class , db . Model ) : topic = _get_document_topic ( document_class , topic ) elif issubclass ( document_class , datastore . Entity ) : if ( not topic ) : raise TopicNotSpecified ( ) else : raise DocumentTypeError ( ) return prospective_search_admin . list_subscriptions ( topic , max_results , None , sub_id_start , expires_before )
list subscriptions on a topic .