I am trying to create a tuple as:
tuples = (i+1,
db.entries[i].get("ENTRYTYPE"),
db.entries[i].get("ID"),
db.entries[i].get("title"),
db.entries[i].get("author"),
db.entries[i].get("journal"),
db.entries[i].get("year")
)
where db is a database, i is properly defined.
Now, the get("text") has ~40 different text. I can do it manually, and it is working. But is it possible to do it in some other way, e.g. loop like:
Entries = ["ENTRYTYPE", "ID", "title", "author" ...]
for entry in entries:
tuples = (i+1, db.entries.get(entry)
Noneor something other in empty places. And you can do the same with list.