Logo Search packages:      
Sourcecode: zope-cmfpgforum version File versions

tuple CMFpgForum::sql::SQLMethods::posting_verify_deletion_args [static, inherited]

Initial value:

RoutableSqlMethod(
        'posting_verify_deletion_args',
        '',
        '''
MESSAGE_BOARD_ID="" POSTING_ID=""

THREAD_ID=""
''',
        '''
select
  P.POSTING_ID
from
  POSTING P
where
  P.MESSAGE_BOARD_ID = <dtml-var "_.int(MESSAGE_BOARD_ID)">
  and P.POSTING_ID = <dtml-var "_.int(POSTING_ID)">
  <dtml-if "_.int(POSTING_ID)==_.int(THREAD_ID)">
    and P.THREAD_ID is null
    and P.PARENT_ID is null
  <dtml-else>
    and P.THREAD_ID = <dtml-var "_.int(THREAD_ID)">
  </dtml-if>
  <dtml-unless "user_has_required_role__message_board()">
    and P.AUTHOR = '<dtml-var "_.str(_.SecurityGetUser())" sql_quote>'
  </dtml-unless>


''')

Definition at line 387 of file sql.py.


Generated by  Doxygen 1.6.0   Back to index