~ubuntu-branches/ubuntu/trusty/beaker/trusty

« back to all changes in this revision

Viewing changes to beaker/ext/memcached.py

  • Committer: Bazaar Package Importer
  • Author(s): Oleksandr Moskalenko
  • Date: 2008-11-25 08:15:08 UTC
  • mfrom: (1.1.10 upstream) (2.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20081125081508-v79xm1n3tz6l7dwa
Tags: 1.1.2-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
class MemcachedNamespaceManager(NamespaceManager):
15
15
    clients = SyncDict()
16
16
    
17
 
    def __init__(self, namespace, url, data_dir=None, lock_dir=None, **params):
 
17
    def __init__(self, namespace, url=None, data_dir=None, lock_dir=None, **params):
18
18
        NamespaceManager.__init__(self, namespace)
19
 
        
 
19
       
 
20
        if not url:
 
21
            raise MissingCacheParameter("url is required") 
20
22
        if lock_dir is not None:
21
23
            self.lock_dir = lock_dir
22
24
        elif data_dir is None: