Skip to content

Commit

Permalink
Updated directory structure for pydal integration
Browse files Browse the repository at this point in the history
  • Loading branch information
gi0baro committed Dec 27, 2014
1 parent 2a28785 commit 21cb35d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "gluon/contrib/pydal"]
path = gluon/contrib/pydal
[submodule "gluon/packages/dal"]
path = gluon/packages/dal
url = https://github.com/web2py/pydal.git
9 changes: 8 additions & 1 deletion gluon/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@

__all__ = ['A', 'B', 'BEAUTIFY', 'BODY', 'BR', 'CAT', 'CENTER', 'CLEANUP', 'CODE', 'CRYPT', 'DAL', 'DIV', 'EM', 'EMBED', 'FIELDSET', 'FORM', 'Field', 'H1', 'H2', 'H3', 'H4', 'H5', 'H6', 'HEAD', 'HR', 'HTML', 'HTTP', 'I', 'IFRAME', 'IMG', 'INPUT', 'IS_ALPHANUMERIC', 'IS_DATE', 'IS_DATETIME', 'IS_DATETIME_IN_RANGE', 'IS_DATE_IN_RANGE', 'IS_DECIMAL_IN_RANGE', 'IS_EMAIL', 'IS_LIST_OF_EMAILS', 'IS_EMPTY_OR', 'IS_EQUAL_TO', 'IS_EXPR', 'IS_FLOAT_IN_RANGE', 'IS_IMAGE', 'IS_JSON', 'IS_INT_IN_RANGE', 'IS_IN_DB', 'IS_IN_SET', 'IS_IPV4', 'IS_LENGTH', 'IS_LIST_OF', 'IS_LOWER', 'IS_MATCH', 'IS_NOT_EMPTY', 'IS_NOT_IN_DB', 'IS_NULL_OR', 'IS_SLUG', 'IS_STRONG', 'IS_TIME', 'IS_UPLOAD_FILENAME', 'IS_UPPER', 'IS_URL', 'LABEL', 'LEGEND', 'LI', 'LINK', 'LOAD', 'MARKMIN', 'MENU', 'META', 'OBJECT', 'OL', 'ON', 'OPTGROUP', 'OPTION', 'P', 'PRE', 'SCRIPT', 'SELECT', 'SPAN', 'SQLFORM', 'SQLTABLE', 'STRONG', 'STYLE', 'TABLE', 'TAG', 'TBODY', 'TD', 'TEXTAREA', 'TFOOT', 'TH', 'THEAD', 'TITLE', 'TR', 'TT', 'UL', 'URL', 'XHTML', 'XML', 'redirect', 'current', 'embed64']

from contrib import pydal
#: add pydal to sys.modules
import os
import sys
sys.path.append(os.path.join(
os.path.dirname(os.path.abspath(__file__)), "packages", "dal"))
import pydal
sys.modules['pydal'] = pydal

from globals import current
from html import *
from validators import *
Expand Down
8 changes: 0 additions & 8 deletions gluon/contrib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +0,0 @@
import os
import sys

sys.path.append(os.path.join(
os.path.dirname(os.path.abspath(__file__)), "pydal"))

import pydal
sys.modules['pydal'] = pydal
1 change: 0 additions & 1 deletion gluon/contrib/pydal
Submodule pydal deleted from 0bbbe1
1 change: 1 addition & 0 deletions gluon/packages/dal
Submodule dal added at 414a03

0 comments on commit 21cb35d

Please sign in to comment.