This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Security enchancement middleware | |
Allows to use `public` decorator for few public views instead of | |
`login_required` for almost everything. | |
Maybe we should contribute this to Django -Alex | |
(c) Alex Lebedev <me@alexlebedev.com>, Februray 2009 | |
""" | |
import re |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
""" | |
Logging facilities | |
""" | |
import sys | |
import logging | |
FUNC_LOGGERS = {} | |
MOD_LOGGERS = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# 2009 Yury Yurevich <anarresti@altlinux.org>, <the.pythy@gmail.com> | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License | |
# as published by the Free Software Foundation, version 2 | |
# of the License. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Move DBF data (as single table) to RDBMS using SQLAlchemy | |
""" | |
import os | |
import ydbf | |
import sqlalchemy as sa | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
db -- provides database schema | |
""" | |
import sqlalchemy as sa | |
metadata = sa.MetaData() | |
kladr = sa.Table('kladr', metadata, | |
sa.Column('na_me', sa.Unicode(40)), | |
sa.Column('socr', sa.Unicode(10)), |
NewerOlder