本文整理汇总了Python中astportal2.model.DBSession.connection方法的典型用法代码示例。如果您正苦于以下问题:Python DBSession.connection方法的具体用法?Python DBSession.connection怎么用?Python DBSession.connection使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类astportal2.model.DBSession
的用法示例。
在下文中一共展示了DBSession.connection方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: rec_link
# 需要导入模块: from astportal2.model import DBSession [as 别名]
# 或者: from astportal2.model.DBSession import connection [as 别名]
from astportal2.model import DBSession, CDR, Phone
from astportal2.lib.myjqgrid import MyJqGrid
from astportal2.lib.base import BaseController
import logging
log = logging.getLogger(__name__)
from tw.api import WidgetsList
from tw.api import js_callback
from tw.forms import TableForm, HiddenField, Label, CalendarDatePicker, SingleSelectField, TextField, TextArea
from tw.forms.validators import Int, DateConverter, TimeConverter
from tw.jquery.ui import ui_tabs_js
import sqlalchemy
db_engine = DBSession.connection().engine.name
from astportal2.lib.app_globals import Markup
from os import path
dir_monitor = config.get('directory.monitor')
try:
hide_numbers = False if config.get('hide_numbers').lower()=='false' else True
except:
hide_numbers = True
import re
re_sip = re.compile('^SIP/poste\d-.*')
prefix_src = config.get('prefix.src')
def rec_link(row):