Beispiel #1
0
def modifycollection(req,
                     ln=CFG_SITE_LANG,
                     rnkID='',
                     func='',
                     colID='',
                     confirm=0):
    navtrail_previous_links = brc.getnavtrail(
    ) + """&gt; <a class="navtrail" href="%s/admin/bibrank/bibrankadmin.py/">BibRank Admin Interface</a> """ % (
        CFG_SITE_URL)

    try:
        uid = getUid(req)
    except:
        return error_page('Error', req)

    auth = brc.check_user(req, 'cfgbibrank')
    if not auth[0]:
        return page(title="Modify visibility toward collections",
                    body=brc.perform_modifycollection(rnkID=rnkID,
                                                      ln=ln,
                                                      func=func,
                                                      colID=colID,
                                                      confirm=confirm),
                    uid=uid,
                    language=ln,
                    req=req,
                    navtrail=navtrail_previous_links,
                    lastupdated=__lastupdated__)
    else:
        return page_not_authorized(req=req,
                                   text=auth[1],
                                   navtrail=navtrail_previous_links)
Beispiel #2
0
def modifycollection(req, ln=CFG_SITE_LANG, rnkID='', func='', colID='', confirm=0):
    navtrail_previous_links = brc.getnavtrail() + """&gt; <a class="navtrail" href="%s/admin/bibrank/bibrankadmin.py/">BibRank Admin Interface</a> """ % (CFG_SITE_URL)

    try:
        uid = getUid(req)
    except:
        return error_page('Error', req)

    auth = brc.check_user(req,'cfgbibrank')
    if not auth[0]:
        return page(title="Modify visibility toward collections",
                body=brc.perform_modifycollection(rnkID=rnkID,
                                                 ln=ln,
                                                 func=func,
                                                 colID=colID,
                                                 confirm=confirm),
                uid=uid,
                language=ln,
                req=req,
                navtrail = navtrail_previous_links,
                lastupdated=__lastupdated__)
    else:
        return page_not_authorized(req=req, text=auth[1], navtrail=navtrail_previous_links)
Beispiel #3
0
        return page_not_authorized(req=req, text=auth[1], navtrail=navtrail_previous_links)

def modifycollection(req, ln=CFG_SITE_LANG, rnkID='', func='', colID='', confirm=0):
    navtrail_previous_links = brc.getnavtrail() + """&gt; <a class="navtrail" href="%s/admin/bibrank/bibrankadmin.py/">BibRank Admin Interface</a> """ % (CFG_SITE_URL)

    try:
        uid = getUid(req)
    except Error, e:
        return error_page(req)

    auth = brc.check_user(req,'cfgbibrank')
    if not auth[0]:
        return page(title="Modify visibility toward collections",
                body=brc.perform_modifycollection(rnkID=rnkID,
                                                 ln=ln,
                                                 func=func,
                                                 colID=colID,
                                                 confirm=confirm),
                uid=uid,
                language=ln,
                req=req,
                navtrail = navtrail_previous_links,
                lastupdated=__lastupdated__)
    else:
        return page_not_authorized(req=req, text=auth[1], navtrail=navtrail_previous_links)

def deleterank(req, ln=CFG_SITE_LANG, rnkID='', confirm=0):
    navtrail_previous_links = brc.getnavtrail() + """&gt; <a class="navtrail" href="%s/admin/bibrank/bibrankadmin.py/">BibRank Admin Interface</a> """ % (CFG_SITE_URL)

    try:
        uid = getUid(req)