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

Source Code for Module omeroweb.webgateway.models

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