コード例 #1
0
ファイル: forms.py プロジェクト: nasawz/post_bar
	def __init__ ( self ):
	    Form.__init__ ( self,
	         Textbox('name', size=30, description="用户名", class_='sl', disabled='disabled'),
	         Textbox('email', EmailValidator, size=30, description="邮箱", class_='sl'),
	         Textbox('signature', regexp(r".{0,100}$", ' 请不要超过100个字符'), size=30, description="签名", class_='sl'),
	         Textbox('outsite_link', LinkValidator, size=30, description="主页", class_='sl'),
	         Button('保存设置', class_='super normal button')
     	)
コード例 #2
0
ファイル: forms.py プロジェクト: nasawz/post_bar
	def __init__ ( self ):
	    Form.__init__ ( self,
	        Textarea ( 'content',
	            Required,
	            rows = 5,
	            cols = 80,
	            description = '',
	            post = '<div class="sep10"></div>',
	            class_ = 'mll'
	        ),
	       Button ( '回复', class_ = 'super normal button' )
	    )
コード例 #3
0
ファイル: forms.py プロジェクト: nasawz/post_bar
	def __init__ ( self ):
	    Form.__init__ ( self,
	        Textbox('name', Required, size=30, description="用户名", class_='sl'),
	        Password('password', Required, size=30, description="密码", class_='sl'),
	        Button('登录', class_='super normal button')
    	)
コード例 #4
0
ファイル: forms.py プロジェクト: nasawz/post_bar
	def __init__ ( self ):
	    Form.__init__ ( self,
			Textarea ( 'title', Required, class_='mle', description='' ),
			Textarea ( 'content', Required, class_='mle tall', description='' ),
			Button   ( '创建', class_ = 'super normal button' )
		)