Package omeroweb :: Package webgateway :: Module models
[hide private]
[frames] | no frames]

Source Code for Module omeroweb.webgateway.models

 1  # 
 2  # webgateway/model.py - django application model description 
 3  #  
 4  # Copyright (c) 2007, 2008, 2009 Glencoe Software, Inc. All rights reserved. 
 5  #  
 6  # This software is distributed under the terms described by the LICENCE file 
 7  # you can find at the root of the distribution bundle, which states you are 
 8  # free to use it only for non commercial purposes. 
 9  # If the file is missing please request a copy by contacting 
10  # jason@glencoesoftware.com. 
11  # 
12  # Author: Carlos Neves <carlos(at)glencoesoftware.com> 
13  # 
14  #from django.db import models 
15  # 
16  #import omero 
17  # 
18  #class StoredConnection(models.Model): 
19  #  # To make things play good with MSIE, the url size limit is < 2083 (http://support.microsoft.com/kb/q208427/) 
20  #  base_path = models.CharField(max_length=20) 
21  #  config_file = models.CharField(max_length=200, blank=True) 
22  #  username = models.CharField(max_length=200, blank=True) 
23  #  password = models.CharField(max_length=20, blank=True) 
24  #  failcount = models.PositiveIntegerField(default=0) 
25  #  enabled = models.BooleanField(default=True) 
26  #  admin_group = models.CharField(max_length=80, blank=True) 
27  #  annotations = models.TextField(blank=True) 
28  #  site_message = models.TextField(blank=True) 
29  # 
30  #  def getBlitzGateway (self, trysuper=True): 
31  #    rv = omero.client_wrapper(self.username, self.password, self, group=trysuper and str(self.admin_group) or None,try_super=trysuper, extra_config=self.config_file) 
32  #    rv.conn = self 
33  #    return rv 
34  # 
35  #  def getProperty (self, key): 
36  #    for e in [x.split(':') for x in self.annotations.split('\n')]: 
37  #      if e[0].strip() == key: 
38  #        if len(e) < 2: 
39  #          return True 
40  #        return (':'.join(e[1:])).strip() 
41  #    return None 
42  # 
43  #  def getMessage (self): 
44  #    return self.site_message 
45