Back to index

plone3  3.1.7
Classes | Functions
wicked.testing.filtercore Namespace Reference

Classes

class  query

Functions

def fakecacheiface
def argchug
def fakefilter

Function Documentation

Definition at line 43 of file filtercore.py.

00043 
00044 def argchug(rets):
00045     def function(*args, **kwargs):
00046         return rets
    

Here is the caller graph for this function:

Definition at line 15 of file filtercore.py.

00015 
00016 def fakecacheiface(cached):
00017     def call(*args):
00018         return args[0]
00019     def set(*args):
00020         return "<link cached>"
00021     methods = dict(__call__=call, set=set) 
00022     cacheman=type('dummy',
00023                   (dict,), methods)()
00024     cacheman.update(cached)
00025     return cacheman

Here is the call graph for this function:

Definition at line 47 of file filtercore.py.

00047 
00048 def fakefilter():
00049     def conf(*args, **kw):
00050         self = list(args).pop()
00051         [setattr(self, k, v) for k, v in kw.items()]
00052         return kw
00053     conf = classmethod(conf)
00054     kdict = dict(configure=conf, scope='/scope/')
00055     wfilter = dummy(kdict, name='wfilter')
00056     wfilter.query_iface = query()
00057     wfilter.getMatch = argchug(('uid', 'link'))
00058     wfilter.resolver = query()
00059     wfilter.section=hash(wfilter)
00060     wfilter.cache=ContentCacheManager(dummy(dict()))
00061     return wfilter

Here is the call graph for this function: