Changeset cde487 in indico
- Timestamp:
- 04/26/12 10:47:01 (13 months ago)
- Branches:
- master, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 0da0c1403bae8e51d8229f460181c71b9e6dda72
- Children:
- a71adaa
- Parents:
- 88caaa
- git-author:
- Pedro Ferreira <jose.pedro.ferreira@…> (04/26/12 10:43:19)
- git-committer:
- Pedro Ferreira <jose.pedro.ferreira@…> (04/26/12 10:47:01)
- Location:
- indico/MaKaC
- Files:
-
- 4 edited
-
common/db.py (modified) (2 diffs)
-
conference.py (modified) (1 diff)
-
webinterface/rh/base.py (modified) (1 diff)
-
webinterface/rh/categoryDisplay.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/common/db.py
rbce3a4 rcde487 35 35 from MaKaC.consoleScripts.installBase import getIndicoInstallMode 36 36 skip_imports = getIndicoInstallMode() 37 37 38 38 39 if not skip_imports: … … 111 112 self._conn.conn = None 112 113 113 114 114 def startRequest( self ): 115 115 """Initialise the DB and starts a new transaction. -
indico/MaKaC/conference.py
ra829f8 rcde487 826 826 827 827 def getVisibility ( self ): 828 # TODO: Check if this actually works 829 # since getOwner() can be None (root categ) 830 try: 831 return max(0,min(int(self._visibility), self.getOwner().getVisibility()+1)) 832 except: 833 self._visibility = 999 834 return 999 828 """ 829 Returns category visibility, considering that it can be 830 restricted by parent categories 831 """ 832 owner = self.getOwner() 833 visibility = int(self._visibility) 834 835 # visibility can be restricted by parent categories 836 if owner: 837 return max(0, min(visibility, owner.getVisibility() + 1)) 838 else: 839 return visibility 835 840 836 841 def setVisibility( self, visibility=999 ): -
indico/MaKaC/webinterface/rh/base.py
r8cde5f rcde487 504 504 if self._checkHttpsRedirect(): 505 505 return 506 506 507 507 508 DBMgr.getInstance().startRequest() -
indico/MaKaC/webinterface/rh/categoryDisplay.py
r31e017 rcde487 553 553 self._req.content_type = """%s"""%(mimetype) 554 554 self._req.headers_out["Content-Disposition"] = """inline; filename="%s\""""%filename.replace("\r\n"," ") 555 555 556 return data 556 557 … … 580 581 mimetype = cfg.getFileTypeMimeType( "ATOM" ) 581 582 self._req.content_type = """%s"""%(mimetype) 583 582 584 return data 583 585
Note: See TracChangeset
for help on using the changeset viewer.
