Google Apps Connector for Blackberry Enterprise Serverがバージョンアップ。
- 1サーバーで500人まで利用可能になった
- 64bit版 Windowsで利用可能になった
- Blackberry Professional Softwareのサポート
- 1サーバーで複数の組織に対応可能になった
- ログ機能の改善
- project
- app
- models.py
- views.py
- project
- app
- modelsディレクトリ
- __init__.py
- model1.py
- model2.py
- views.py
from django.db import models
class demo1(Models.model):
class Meta:
app_label = 'app'
... 通常の定義 ...
from django.db import models
class demo2(Models.model):
class Meta:
app_label = 'app'
... 通常の定義 ...
from model1 import demo1
from model2 import demo2
#!/usr/bin/python
import ldap
from ldap.controls import SimplePagedResultsControl
url = "ldap://adserver.example.com"
base = "dc=example,dc=com"
filter = "sAMAccountName=*"
page_size = 1000
conn = ldap.initialize(url)
conn.simple_bind_s("Administrator@example.com","password")
lcon = SimplePagedResultsControl(ldap.LDAP_CONTROL_PAGE_OID, True, (page_size, ''))
msgid = conn.search_ext(base, ldap.SCOPE_SUBTREE, filter, serverctrls=[lcon])
pages = 0
while True:
pages += 1
print "============ Get page %d ==============" % (pages,)
(rtype, rdata, rmsgid, serverctrls) = conn.result3(msgid)
for item in rdata:
print item[0]
pctrls = [
c
for c in serverctrls
if c.controlType == ldap.LDAP_CONTROL_PAGE_OID
]
if pctrls:
print pctrls
(est, cookie) = pctrls[0].controlValue
if cookie:
lcon.controlValue = (page_size, cookie)
msgid = conn.search_ext(base, ldap.SCOPE_SUBTREE, filter, serverctrls=[lcon])
else:
break
else:
break