Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
invalid Python not flagged?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Terrence Brannon  
View profile  
 More options Nov 27 2008, 7:59 am
From: Terrence Brannon <metap...@gmail.com>
Date: Thu, 27 Nov 2008 04:59:46 -0800 (PST)
Local: Thurs, Nov 27 2008 7:59 am
Subject: invalid Python not flagged?
I made a call to HTML() without pyjamas.ui in front of it, and of
course that led to the html not being rendered, but I'm wondering why
there was no error thrown:

#from pyjamas.ui import Button, RootPanel
from pyjamas import Window
import pyjamas.ui

doc = pyjamas.ui.RootPanel()

def greet(sender):
    Window.alert("Hello, AJAX!")

class Hello:
    def onModuleLoad(self):
        b = pyjamas.ui.Button("Clik me", self.greet)
        doc.add(b)
        hw = HTML("Hello <b>World</b>")  #### buggy line
        doc.add(hw)

    def greet(self):
        Window.alert("Hello, sel2342f AJAX!")


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
lkcl  
View profile  
 More options Nov 27 2008, 12:10 pm
From: lkcl <luke.leigh...@googlemail.com>
Date: Thu, 27 Nov 2008 09:10:18 -0800 (PST)
Local: Thurs, Nov 27 2008 12:10 pm
Subject: Re: invalid Python not flagged?
terrence,
congratulations! you've encountered the very first absolute classic
issue of pyjamas programming.
read the 2nd section, "Editing your first application" of
http://pyjs.org/book/output/Bookreader.html#Getting%20Started
l.

On Nov 27, 12:59 pm, Terrence Brannon <metap...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google