 Tornado 6.5 DocumentationTornado web application is done in subclasses of RequestHandler. The main entry point for a handler subclass is a method named after the HTTP method being handled: get(), post(), etc. Each handler may define define a BaseHandler class that overrides methods such as write_error and get_current_user and then subclass your own BaseHandler instead of RequestHandler for all your specific handlers. Handling request different template paths for different handlers). To load templates from a non-filesystem location, subclass tornado.template.BaseLoader and pass an instance as the template_loader application setting. Compiled0 码力 | 272 页 | 1.12 MB | 3 月前3 Tornado 6.5 DocumentationTornado web application is done in subclasses of RequestHandler. The main entry point for a handler subclass is a method named after the HTTP method being handled: get(), post(), etc. Each handler may define define a BaseHandler class that overrides methods such as write_error and get_current_user and then subclass your own BaseHandler instead of RequestHandler for all your specific handlers. Handling request different template paths for different handlers). To load templates from a non-filesystem location, subclass tornado.template.BaseLoader and pass an instance as the template_loader application setting. Compiled0 码力 | 272 页 | 1.12 MB | 3 月前3
 Python 标准库参考指南 2.7.18 false or omitted, this returns False; otherwise it returns True. bool is also a class, which is a subclass of int. Class bool cannot be subclassed further. Its only instances are False and True. 2.2.1 新版功能 Reference, 发布 2.7.18 subclass thereof. Also return true if classinfo is a type object (new-style class) and object is an object of that type or of a (direct, indirect or virtual) subclass thereof. If object issubclass(class, classinfo) Return true if class is a subclass (direct, indirect or virtual) of classinfo. A class is considered a subclass of itself. classinfo may be a tuple of class objects, in which0 码力 | 1552 页 | 7.42 MB | 9 月前3 Python 标准库参考指南 2.7.18 false or omitted, this returns False; otherwise it returns True. bool is also a class, which is a subclass of int. Class bool cannot be subclassed further. Its only instances are False and True. 2.2.1 新版功能 Reference, 发布 2.7.18 subclass thereof. Also return true if classinfo is a type object (new-style class) and object is an object of that type or of a (direct, indirect or virtual) subclass thereof. If object issubclass(class, classinfo) Return true if class is a subclass (direct, indirect or virtual) of classinfo. A class is considered a subclass of itself. classinfo may be a tuple of class objects, in which0 码力 | 1552 页 | 7.42 MB | 9 月前3
 Python 标准库参考指南 2.7.18 false or omitted, this returns False; otherwise it returns True. bool is also a class, which is a subclass of int. Class bool cannot be subclassed further. Its only instances are False and True. 2.2.1 新版功能 Reference, 发布 2.7.18 subclass thereof. Also return true if classinfo is a type object (new-style class) and object is an object of that type or of a (direct, indirect or virtual) subclass thereof. If object issubclass(class, classinfo) Return true if class is a subclass (direct, indirect or virtual) of classinfo. A class is considered a subclass of itself. classinfo may be a tuple of class objects, in which0 码力 | 1552 页 | 7.42 MB | 9 月前3 Python 标准库参考指南 2.7.18 false or omitted, this returns False; otherwise it returns True. bool is also a class, which is a subclass of int. Class bool cannot be subclassed further. Its only instances are False and True. 2.2.1 新版功能 Reference, 发布 2.7.18 subclass thereof. Also return true if classinfo is a type object (new-style class) and object is an object of that type or of a (direct, indirect or virtual) subclass thereof. If object issubclass(class, classinfo) Return true if class is a subclass (direct, indirect or virtual) of classinfo. A class is considered a subclass of itself. classinfo may be a tuple of class objects, in which0 码力 | 1552 页 | 7.42 MB | 9 月前3
 Python 标准库参考指南 2.7.18 false or omitted, this returns False; otherwise it returns True. bool is also a class, which is a subclass of int. Class bool cannot be subclassed further. Its only instances are False and True. 2.2.1 新版功能 Reference, 发布 2.7.18 subclass thereof. Also return true if classinfo is a type object (new-style class) and object is an object of that type or of a (direct, indirect or virtual) subclass thereof. If object issubclass(class, classinfo) Return true if class is a subclass (direct, indirect or virtual) of classinfo. A class is considered a subclass of itself. classinfo may be a tuple of class objects, in which0 码力 | 1552 页 | 7.42 MB | 9 月前3 Python 标准库参考指南 2.7.18 false or omitted, this returns False; otherwise it returns True. bool is also a class, which is a subclass of int. Class bool cannot be subclassed further. Its only instances are False and True. 2.2.1 新版功能 Reference, 发布 2.7.18 subclass thereof. Also return true if classinfo is a type object (new-style class) and object is an object of that type or of a (direct, indirect or virtual) subclass thereof. If object issubclass(class, classinfo) Return true if class is a subclass (direct, indirect or virtual) of classinfo. A class is considered a subclass of itself. classinfo may be a tuple of class objects, in which0 码力 | 1552 页 | 7.42 MB | 9 月前3
 Tornado 6.5 DocumentationTornado web application is done in subclasses of RequestHandler. The main entry point for a handler subclass is a method named after the HTTP method being handled: get(), post(), etc. Each handler may define define a BaseHandler class that overrides methods such as write_error and get_current_user and then subclass your own BaseHandler instead of RequestHandler for all your specific handlers. Handling request different template paths for different handlers). To load templates from a non-filesystem location, subclass tornado.template.BaseLoader and pass an instance as the template_loader application setting. Compiled0 码力 | 437 页 | 405.14 KB | 3 月前3 Tornado 6.5 DocumentationTornado web application is done in subclasses of RequestHandler. The main entry point for a handler subclass is a method named after the HTTP method being handled: get(), post(), etc. Each handler may define define a BaseHandler class that overrides methods such as write_error and get_current_user and then subclass your own BaseHandler instead of RequestHandler for all your specific handlers. Handling request different template paths for different handlers). To load templates from a non-filesystem location, subclass tornado.template.BaseLoader and pass an instance as the template_loader application setting. Compiled0 码力 | 437 页 | 405.14 KB | 3 月前3
 Django CMS 4.1.x Documentationthree components, that correspond to Django’s familiar Model-View-Template scheme: What Function Subclass of model (if required) plugin instance configuration CMSPlugin view display logic CMSPluginBase file in the root level called cms_wizards.py. In this file, import Wizard as follows: Then, simply subclass Wizard and instantiate it. Note Registering a wizard with the wizard_pool is no longer the preferred class as another keyword argument when you instantiate the Wizard object. For example: You must subclass cms.wizards.wizard_base.Wizard to use it. This is because each wizard’s uniqueness is determined0 码力 | 518 页 | 1.66 MB | 6 月前3 Django CMS 4.1.x Documentationthree components, that correspond to Django’s familiar Model-View-Template scheme: What Function Subclass of model (if required) plugin instance configuration CMSPlugin view display logic CMSPluginBase file in the root level called cms_wizards.py. In this file, import Wizard as follows: Then, simply subclass Wizard and instantiate it. Note Registering a wizard with the wizard_pool is no longer the preferred class as another keyword argument when you instantiate the Wizard object. For example: You must subclass cms.wizards.wizard_base.Wizard to use it. This is because each wizard’s uniqueness is determined0 码力 | 518 页 | 1.66 MB | 6 月前3
 Django CMS 2.2.x Documentationreturn self.poll.question Note: django CMS plugins must inherit from cms.models.CMSPlugin (or a subclass thereof) and not models.Model. Run manage.py syncdb to create the database tables for this model build your plugin, you’ll make it out of: • a subclass of cms.models.pluginmodel.CMSPlugin to store the configuration for your plugin instances • a subclass of cms.plugin_base.CMSPluginBase that defines actually a subclass of django.contrib.admin.options.ModelAdmin. It is its render() method that is the plugin’s view function. An aside on models and configuration The plugin model, the subclass of cms.models0 码力 | 76 页 | 627.98 KB | 6 月前3 Django CMS 2.2.x Documentationreturn self.poll.question Note: django CMS plugins must inherit from cms.models.CMSPlugin (or a subclass thereof) and not models.Model. Run manage.py syncdb to create the database tables for this model build your plugin, you’ll make it out of: • a subclass of cms.models.pluginmodel.CMSPlugin to store the configuration for your plugin instances • a subclass of cms.plugin_base.CMSPluginBase that defines actually a subclass of django.contrib.admin.options.ModelAdmin. It is its render() method that is the plugin’s view function. An aside on models and configuration The plugin model, the subclass of cms.models0 码力 | 76 页 | 627.98 KB | 6 月前3
 Django CMS 2.3.x Documentationreturn self.poll.question Note: django CMS plugins must inherit from cms.models.CMSPlugin (or a subclass thereof) and not models.Model. Run manage.py syncdb to create the database tables for this model to build your plugin, you’ll make it from: • a subclass of cms.models.pluginmodel.CMSPlugin to store the configuration for your plugin instances • a subclass of cms.plugin_base.CMSPluginBase that defines actually a subclass of django.contrib.admin.options.ModelAdmin. It is its render() method that is the plugin’s view function. An aside on models and configuration The plugin model, the subclass of cms.models0 码力 | 92 页 | 666.41 KB | 6 月前3 Django CMS 2.3.x Documentationreturn self.poll.question Note: django CMS plugins must inherit from cms.models.CMSPlugin (or a subclass thereof) and not models.Model. Run manage.py syncdb to create the database tables for this model to build your plugin, you’ll make it from: • a subclass of cms.models.pluginmodel.CMSPlugin to store the configuration for your plugin instances • a subclass of cms.plugin_base.CMSPluginBase that defines actually a subclass of django.contrib.admin.options.ModelAdmin. It is its render() method that is the plugin’s view function. An aside on models and configuration The plugin model, the subclass of cms.models0 码力 | 92 页 | 666.41 KB | 6 月前3
 Django CMS 2.4.x Documentationreturn self.poll.question Note: django CMS plugins must inherit from cms.models.CMSPlugin (or a subclass thereof) and not models.Model. Run manage.py syncdb to create the database tables for this model to build your plugin, you’ll make it from: • a subclass of cms.models.pluginmodel.CMSPlugin to store the configuration for your plugin instances • a subclass of cms.plugin_base.CMSPluginBase that defines actually a subclass of django.contrib.admin.options.ModelAdmin. It is its render() method that is the plugin’s view function. An aside on models and configuration The plugin model, the subclass of cms.models0 码力 | 104 页 | 709.98 KB | 6 月前3 Django CMS 2.4.x Documentationreturn self.poll.question Note: django CMS plugins must inherit from cms.models.CMSPlugin (or a subclass thereof) and not models.Model. Run manage.py syncdb to create the database tables for this model to build your plugin, you’ll make it from: • a subclass of cms.models.pluginmodel.CMSPlugin to store the configuration for your plugin instances • a subclass of cms.plugin_base.CMSPluginBase that defines actually a subclass of django.contrib.admin.options.ModelAdmin. It is its render() method that is the plugin’s view function. An aside on models and configuration The plugin model, the subclass of cms.models0 码力 | 104 页 | 709.98 KB | 6 月前3
 Django CMS 2.4.x Documentationreturn self.poll.question Note django CMS plugins must inherit from cms.models.CMSPlugin (or a subclass thereof) and not models.Model [http://readthedocs.org/docs/django/en/latest/ref/models/instances so to build your plugin, you’ll make it from: a subclass of cms.models.pluginmodel.CMSPlugin to store the configuration for your plugin instances a subclass of cms.plugin_base.CMSPluginBase that defines actually a subclass of django.contrib.admin.options.ModelAdmin. It is its render() method that is the plugin’s view function. 2.2.2. An aside on models and configuration The plugin model, the subclass of cms0 码力 | 156 页 | 727.78 KB | 6 月前3 Django CMS 2.4.x Documentationreturn self.poll.question Note django CMS plugins must inherit from cms.models.CMSPlugin (or a subclass thereof) and not models.Model [http://readthedocs.org/docs/django/en/latest/ref/models/instances so to build your plugin, you’ll make it from: a subclass of cms.models.pluginmodel.CMSPlugin to store the configuration for your plugin instances a subclass of cms.plugin_base.CMSPluginBase that defines actually a subclass of django.contrib.admin.options.ModelAdmin. It is its render() method that is the plugin’s view function. 2.2.2. An aside on models and configuration The plugin model, the subclass of cms0 码力 | 156 页 | 727.78 KB | 6 月前3
共 92 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10














