As I'm still learning python, I'm confused by something. I've set up a
virtual field with the following method:
def getExtrasNumber(self):
extrasID = self.Record.id
extrasType = self.Record.type
extrasCreated = self.Record.datecreated
extrasYear = extrasCreated.strftime('%y')
return extrasType, extrasYear, extrasID
#print extrasType, extrasYear, extrasID
with the return statement I get:
(u'DEX', '11', 4L)
with the print statement I get:
DEX 11 - 4
I want the return statement to format the output like the print statement
Can anyone explain?
-- Carey
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message:
http://leafe.com/archives/byMID/[email protected]