Hello.
I am new to pyramid and pyjamas, and my programming skills are
modest.  I would like to use the combination of pyramid, pyjamas, json-
rpc, and probably PureMVC to create a web application.  As a first
step, I am trying to develop a new Pyramid tutorial based on the
existing SQLAlchemy + URL Dispatch Wiki Tutorial. In this new
tutorial, a similar wiki will be created that uses pyramid, pyjamas,
and json-rpc.  A later version will use PureMVC.

Unfortunately, I have run into problems.  The original version of the
wiki tutorial works fine, even on my Linux desktop.  I have added a
new look-alike pyjamas version of the wiki under the static folder of
the tutorial.  This works fine too. Now I have added json-rpc, and
have problems.  I use lovely.jsonrpc to handle and dispatch the JSON-
RPC on the server side. However, my unit tests calling the wiki
database fail. I am not sure how to fix these errors.  The first one
is:

test_anonymous_user_cannot_add (tutorial.tests.FunctionalTests) ... /
home/john/web/pyramidtut/tutorial/tutorial/models.py:35: SAWarning: At
least one scoped session is already present.  configure() can not
affect sessions that have already been created.
  DBSession.configure(bind=engine)

I have attached the full error report at the pastbin:
http://pylonshq.com/pasties/43806d6045ae0e427e6685371ecd2e43

My tests.py file is at:  
http://pylonshq.com/pasties/7242752bba18f05626ab09397f870ed0

Any assistance would be appreciated.  Because I am new, I don't know
if it is better to upload the entire project so that others can run
it, or if I should upload additional files.  If so, which files and
where do I upload them to?

Thanks.  John

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to