Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F118846838
bibcatalog_system_dummy.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jun 22, 13:15
Size
2 KB
Mime Type
text/x-python
Expires
Tue, Jun 24, 13:15 (2 d)
Engine
blob
Format
Raw Data
Handle
26929236
Attached To
R3600 invenio-infoscience
bibcatalog_system_dummy.py
View Options
# -*- coding: utf-8 -*-
##
## This file is part of Invenio.
## Copyright (C) 2009, 2010, 2011 CERN.
##
## Invenio is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 2 of the
## License, or (at your option) any later version.
##
## Invenio is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
## General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with Invenio; if not, write to the Free Software Foundation, Inc.,
## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
"""
Provide a "ticket" interface with a request tracker.
Please see the help/hacking/bibcatalog-api page for details.
This is a dummy class that does not nothing. This is used when
not ticketing system is set.
"""
# pylint: disable=W0613
# pylint: disable=R0201
class
BibCatalogSystemDummy
(
object
):
""" A dummy class for ticket support."""
def
check_system
(
self
,
uid
=
None
):
return
""
def
ticket_search
(
self
,
uid
,
recordid
=-
1
,
subject
=
""
,
text
=
""
,
creator
=
""
,
owner
=
""
,
date_from
=
""
,
date_until
=
""
,
status
=
""
,
priority
=
""
,
queue
=
""
):
return
[]
def
ticket_submit
(
self
,
uid
=
None
,
subject
=
""
,
recordid
=-
1
,
text
=
""
,
queue
=
""
,
priority
=
""
,
owner
=
""
,
requestor
=
""
):
pass
def
ticket_assign
(
self
,
uid
,
ticketid
,
to_user
):
pass
def
ticket_steal
(
self
,
uid
,
ticketid
):
pass
def
ticket_set_attribute
(
self
,
uid
,
ticketid
,
attribute
,
new_value
):
pass
def
ticket_get_attribute
(
self
,
uid
,
ticketid
,
attribute
):
pass
def
ticket_get_info
(
self
,
uid
,
ticketid
,
attributes
=
None
):
pass
def
get_queues
(
self
,
uid
):
pass
def
ticket_comment
(
self
,
uid
,
ticketid
,
comment
):
pass
# pylint: enable=W0613
Event Timeline
Log In to Comment