gettextify card, add note about it to alchemy*
This commit is contained in:
parent
80d00dbde6
commit
e60cd2a75f
|
@ -15,6 +15,8 @@
|
||||||
#along with this program. If not, see <http://www.gnu.org/licenses/>.
|
#along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#In the "official" distribution you can find the license in agpl-3.0.txt.
|
#In the "official" distribution you can find the license in agpl-3.0.txt.
|
||||||
|
|
||||||
|
#TODO: gettextify if file is used again
|
||||||
|
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
|
|
||||||
from sqlalchemy import types
|
from sqlalchemy import types
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
This package contains all classes to be mapped and mappers themselves
|
This package contains all classes to be mapped and mappers themselves
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
#TODO: gettextify if file is used again
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
Contains all sqlalchemy tables
|
Contains all sqlalchemy tables
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
#TODO: gettextify if file is used again
|
||||||
|
|
||||||
from sqlalchemy import Table, Float, Column, Integer, String, MetaData, \
|
from sqlalchemy import Table, Float, Column, Integer, String, MetaData, \
|
||||||
ForeignKey, Boolean, SmallInteger, DateTime, Text, Index, CHAR, \
|
ForeignKey, Boolean, SmallInteger, DateTime, Text, Index, CHAR, \
|
||||||
PickleType, Unicode
|
PickleType, Unicode
|
||||||
|
|
|
@ -153,7 +153,7 @@ def encodeCard(cardString):
|
||||||
return encodeCardList[cardString]
|
return encodeCardList[cardString]
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
print "fpdb card encoding(same as pokersource)"
|
print _("fpdb card encoding(same as pokersource)")
|
||||||
for i in xrange(1, 14):
|
for i in xrange(1, 14):
|
||||||
print "card %2d = %s card %2d = %s card %2d = %s card %2d = %s" % \
|
print "card %2d = %s card %2d = %s card %2d = %s card %2d = %s" % \
|
||||||
(i, valueSuitFromCard(i), i+13, valueSuitFromCard(i+13), i+26, valueSuitFromCard(i+26), i+39, valueSuitFromCard(i+39))
|
(i, valueSuitFromCard(i), i+13, valueSuitFromCard(i+13), i+26, valueSuitFromCard(i+26), i+39, valueSuitFromCard(i+39))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user