Welcome to Gizmo(QP)

Gizmo(QP) is an extension of the QP Web Framework, aiming to make interface-rich web applications more manageable.

Menu
  • Home
  • Documentation
    • Hello World
    • Hello Pluto
    • Dhi 
    • Gizmos
    • Gizmo Form
    • Unburdened Page
    • Access Control
    • Templating
    • Site Configuration
  • Demo
  • Download

Hello World

__revision__ = “$Id: slash.py 975 2008-03-19 10:44:16Z mario $”

from gz.fill.directory import Directory
from gz.fill.exportable import X
from gz.pub.publisher import Publisher
from gz.pub.common import page

class SitePublisher(Publisher):

configuration = dict(
http_address=(”, 8016),
)

class SiteDirectory(Directory):

exportables = [
X(”, ‘index’, ‘Hello’, ‘Hello World’),
]

def index(self):
return page(self.get_x().title, ‘Hello World!’)
Running the site
To launch the site, we use the qp management script that will look through its sites search path for the helloworld python package:

qp helloworld start
Note that this expects a helloworld/var subdirectory, where to write log and pid files.

To view, we load the URL:

http://localhost:8016/

Categories

  • Data
  • Uncategorized
  • Writing Help

Archives

  • January 2023
  • September 2022
  • July 2022
  • May 2022
  • December 2021
  • February 2020
  • January 2020
  • November 2019
  • September 2019
  • June 2019
  • April 2019
  • March 2019
February 2023
M T W T F S S
« Jan    
 12345
6789101112
13141516171819
20212223242526
2728  

© Welcome to Gizmo(QP) 2023. Powered by WordPress