can someone help me with this i have posted the code below: from google.appengine.tools import bulkloader from google.appengine.ext import db import datetime
class DbaV2(db.Model): Symbol=db.StringProperty() Series=db.StringProperty() Date=db.DateProperty() Pre_close=db.FloatProperty() Op_pr=db.FloatProperty() Hi_pr=db.FloatProperty() lo_pr=db.FloatProperty() las_pr=db.FloatProperty() Clo_pr=db.FloatProperty() To_tr_quan=db.FloatProperty() turn_ovr_lac=db.FloatProperty() class DbaV2Loader(bulkloader.Loader): def __init__(self): bulkloader.Loader.__init__(self, 'DbaV2', [('Symbol', str), ('Series', str), ('Op_pr', float), ('Hi_pr', float), ('lo_pr', float), ('Clo_pr', float), ('las_pr', float), ('Pre_close', float), ('To_tr_quan', float), ('turn_ovr_lac', float), ('Date', lambda x: datetime.datetime.strptime(x, '%d-%b- %Y').date()), ]) '''def GenerateKey(self, i, values): a="P" b=str(values[0]) c=str(values[10]) d=str(values[1]) c=a+b+d+c return c''' loaders=[DbaV2Loader] the Generate key function was used by me to generate a user defind key to prevent data replication.It was working fine when i was using bulk uploader, but now i want to do a similar thing using the appcfg upload can someone please help me out. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---