Here is the description from http://code.google.com/p/pykata/issues/list
'''
We need a way to upload and download data that will handle multiple
exercises in one simple
operation. Ideally, the external data will be in the format shown in
our wiki page [[UploadFormat]],
but for now, we just need to make sure the interface to App Engine
works in both directions.
The bulkloader.py tool does not work, and Google is not motivated to
fix it. There is, however,
some good discussion of how to do this with a Python script. See
Chapter 12: "Bulk Data
Operations and Remote Access" in the book "Google App Engine" by Don
Sanderson.
'''
--
You received this message because you are subscribed to the Google Groups "PyWhip" group.
To post to this group, send email to pyw...@googlegroups.com.
To unsubscribe from this group, send email to pywhip+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pywhip?hl=en.
-- Dave
So I was just going through the uploadformat specs -
http://code.google.com/p/pykata/wiki/UploadFormat?ts=1270310194&updated=UploadFormat
I wasn't able to copy paste the format to try it out properly, I
notice that in Google Code wiki, we can use {{{ }}} to enclose
verbatim code.
I think the code is looking fine now.
Let me know if i've changed the pre tags to {{{ on the wiki in a right
way.
Abhishek
The solution was to change the first triple single-quote to triple
double-quote. (Is that a six-quote or what :>) Google's
syntax highlighter now recognizes it as a multi-line quote, and colors
it properly. Before, it was continuing the quote
past its end and including subsequent code lines.
I hate six-quotes, because they look like *** on my monitor. I
generally prefer triple single-quotes for readability.
I would report this to Google as a bug, but they have some much more
serious problems at the moment, so I won't bother.
-- Dave
#---
# next exercise here
#---
Nice
-- Dave
Abhishek Mishra wrote:
> Let me know if this patch is committable :) --
1) We should limit bulk uploads to just a few authorized users.
Otherwise this could be an opportunity for vandalism. One way we could
implement this more securely is not have the "Upload Problems"
invitation on the Add Problem form, but have a special name and password
to be entered in the Name field of Add Problem - something like
"bulkloader x$yz873-Q" You have to get the password right to bring up
the bulkloader form. Otherwise, you just see an error like you had
entered an invalid problem name - no clue that there is something
special about this field. We don't want to invite script kiddies to try
all their dictionary attacks.
2) The leading _underscore on the name of the skeleton function was
there just to avoid name conflicts with the solution function. In the
presentation to the user this should be stripped off. Otherwise you
will get an error when you try to run the doctests on the skeleton function.
See http://code.google.com/p/pykata/wiki/UploadFormat for clarification
of this and a bunch of other details about how we should handle missing
tags, etc.
3) The #-userID tag should not create any new IDs. It should always be
the same as the current session ID, except in one very special case: The
PyKata administrator (currently me) is uploading bulkdata from numerous
users (as in a backup/restore scenario). Maybe for now, we should just
leave out this tag. Since we are bulkloading via a normal form, the
user will always be logged in, and we can assume the userID is already set.
Good luck with your test.
-- Dave