[Hejes-devel] [1709] fixed indentations
hejes-devel at nytud.hu
hejes-devel at nytud.hu
Tue Feb 7 13:55:02 CET 2017
Revision: 1709
Author: mittelholcz
Date: 2017-02-07 13:55:02 +0100 (Tue, 07 Feb 2017)
Log Message:
-----------
fixed indentations
Modified Paths:
--------------
trunk/web2py/applications/helyesiras_webdev/modules/Wordform.py
Modified: trunk/web2py/applications/helyesiras_webdev/modules/Wordform.py
===================================================================
--- trunk/web2py/applications/helyesiras_webdev/modules/Wordform.py 2017-02-07 11:30:29 UTC (rev 1708)
+++ trunk/web2py/applications/helyesiras_webdev/modules/Wordform.py 2017-02-07 12:55:02 UTC (rev 1709)
@@ -583,7 +583,7 @@
return self.NatGeo == 1
def isDynasty(self):
- """ Lexical information: uralkodohaz neve
+ """ Lexical information: uralkodohaz neve
Returns True, False or None (when unknown)
"""
return self.Dynasty
@@ -736,8 +736,8 @@
ex.akh12_6_3_egybe_1,
ex.akh12_6_3_egybe_2,
ex.akh12_hsz_ige
-
+
FROM alt_types t
LEFT JOIN alt_types_compound c1 ON c1.tid=t.id
LEFT JOIN alt_types_freq f1 ON f1.tid=t.id
@@ -858,7 +858,7 @@
l.AkH12_Mozgo = row[98] # ex.akh12_mozgo
l.AkH12_AseskepzoKulon = row[99] # ex.akh12_aseskepzo_kulon
l.AkH12_AseskepzoEgybe = row[100] # ex.akh12_aseskepzo_egybe
- l.AkH12_63Egybe1 = row[101] # ex.akh12_6_3_egybe_1
+ l.AkH12_63Egybe1 = row[101] # ex.akh12_6_3_egybe_1
l.AkH12_63Egybe2 = row[102] # ex.akh12_6_3_egybe_2
l.AkH12_HszIge = row[103] # ex.akh12_hsz_ige
@@ -1153,27 +1153,49 @@
print "SZE:" + str(SZE_map) + ' ' + '!'.join(SZE_map.segments(w.orthographic())).encode('UTF-8')
def debug_lexentry():
- from gluon import DAL
- print('Connecting to DB...')
- db = DAL('mysql://dbdicter:dbdicter123@localhost/dbdict', migrate_enabled=False)
- print('Connected')
- print('Type expressions to check, blank line to exit')
- while True:
- line = sys.stdin.readline()
- line = line.strip()
- if not line:
- break
- for id, word in forToken(db, line): # find id of tok
- if id != None:
- lexentry = loadLexicalEntry(db, id)
- props = dict()
- for k, v in vars(lexentry).items():
- if v != None:
- props[k] = v
- print( str(props) )
- else:
- print('Not found')
+ from gluon import DAL
+ print('Connecting to DB...')
+ db = DAL('mysql://dbdicter:dbdicter123@localhost/dbdict', migrate_enabled=False)
+ print('Connected')
+ print('Type expressions to check, blank line to exit')
+ while True:
+ line = sys.stdin.readline()
+ line = line.strip()
+ if not line:
+ break
+ for id, word in forToken(db, line): # find id of tok
+ if id != None:
+ lexentry = loadLexicalEntry(db, id)
+ props = dict()
+ for k, v in vars(lexentry).items():
+ if v != None:
+ props[k] = v
+ print( str(props) )
+ else:
+ print('Not found')
+#def debug_lexentry():
+ #from gluon import DAL
+ #print('Connecting to DB...')
+ #db = DAL('mysql://dbdicter:dbdicter123@localhost/dbdict', migrate_enabled=False)
+ #print('Connected')
+ #print('Type expressions to check, blank line to exit')
+ #while True:
+ #line = sys.stdin.readline()
+ #line = line.strip()
+ #if not line:
+ #break
+ #for id, word in forToken(db, line): # find id of tok
+ #if id != None:
+ #lexentry = loadLexicalEntry(db, id)
+ #props = dict()
+ #for k, v in vars(lexentry).items():
+ #if v != None:
+ #props[k] = v
+ #print( str(props) )
+ #else:
+ #print('Not found')
+
if __name__ == '__main__':
debug_lexentry()
More information about the Hejes-devel
mailing list