Module SQL :: Class SQL
[show private | hide private]
[frames | no frames]

Class SQL


CC SQL Database methods.'''

Z SQL Methods that share a cache across threads of a Zope server, allowing the cache to be cleared for all threads.
Method Summary
  flushCache(self)
Request that the cache be flushed.
  flushCacheEntry(self, REQUEST, **kw)
Flush just this entry from the cache.
  getCache(self)
Public wrapper for cache.
  manage_edit(self, title, connection_id, arguments, template, SUBMIT, sql_pref__cols, sql_pref__rows, REQUEST)
Change database method properties

Class Variable Summary
tuple __ac_permissions__ = (('Use Database Methods', ('flushCa...
str meta_type = 'CC SQL Method'

Method Details

flushCache(self)

Request that the cache be flushed.

Mark our internal _flushCache attr and perform the flush. Other ZEO clients, if any, will see the marked-up ._flushCache and flush their cache when they first try to use it.

flushCacheEntry(self, REQUEST=None, **kw)

Flush just this entry from the cache.

:Parameters:

  - `**kw`: Same parameters you pass to the SQLMethod

  - `REQUEST`: Current REQUEST.  Needed in case SQLMethod looks
    in REQUEST to render itself.

:Warn: This does not work across ZEO clients.  Only the client
  that this is called in will flush this cache entry. You have
  been warned.

getCache(self)

Public wrapper for cache.

Checks to see if it needs to be flushed.

manage_edit(self, title, connection_id, arguments, template, SUBMIT='Change', sql_pref__cols='50', sql_pref__rows='20', REQUEST=None)

Change database method properties

:Parameters:
  • `connection_id`: the id of a database connection that resides in the current folder or in a folder above the current folder. The database should understand SQL.
  • `arguments`: a string containing an arguments specification, as would be given in the SQL method cration form.
  • `template`: string containing the source for the SQL Template.

Class Variable Details

__ac_permissions__

Type:
tuple
Value:
(('Use Database Methods',
  ('flushCache', 'flushCacheEntry'),
  ('Anonymous', 'Manager')),)                                          

meta_type

Type:
str
Value:
'CC SQL Method'                                                        

Generated by Epydoc 2.0 on Fri Jan 16 00:08:27 2004 http://epydoc.sf.net