Unlock instant, AI-driven research and patent intelligence for your innovation.

Data flow control method and system based on webpage frame

A technology of data flow and web page, applied in the field of communication, can solve the problems of high error rate, code duplication, affecting the efficiency of collaborative development, etc., so as to reduce the error rate and improve the efficiency.

Active Publication Date: 2015-05-06
TENCENT TECH CHENGDU
View PDF4 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] During the research and practice of the prior art, the inventors of the present invention found that in the existing schemes, for different projects, it is necessary to independently set the corresponding control schemes, that is, it is necessary to write a control scheme for each project. A set of codes to indicate the data flow input (Request), output (Response), and the calling method of the corresponding function, etc., resulting in a large amount of code duplication, which not only greatly affects the efficiency of collaborative development, but also has a high error rate

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data flow control method and system based on webpage frame
  • Data flow control method and system based on webpage frame
  • Data flow control method and system based on webpage frame

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0038] This embodiment will be described from the perspective of a data flow control system based on a webpage framework (Web). The data flow control system based on a webpage framework, referred to as a data flow control system, may specifically be integrated in devices such as servers.

[0039] A data flow control method based on a web page framework, comprising: calling a single-entry function, and receiving a data processing request through the single-entry function, the data processing request carries a passed control parameter, and selects a corresponding function control module according to the control parameter , through the selected function control module, manage and operate the management function according to the control parameter, obtain the operation result, and generate corresponding processing result data according to the operation result; return the processing result data to the user through the single entry function.

[0040] Such as Figure 1b As shown, the ...

Embodiment 2

[0076] According to the method described in Embodiment 1, the following will take the Django framework as an example for further detailed description. It should be understood that this method is also applicable to other webpage frameworks, and will not be repeated here.

[0077] Such as Figure 2a As shown, the function control module (Action), template (Template) and management module (Manage) (the module shown in the thick line box in Figure 2) can be added to the existing Django framework, wherein the specifics of these three modules The function can be as follows:

[0078] 1. Function control module (Action);

[0079] The function control module is used to control data processing requests, such as function calling of each function module in the URL, and parameter organization.

[0080] 2. Template (Template);

[0081] Templates are used for data processing of hypertext markup language (html, hypertext markup language) strings, and calls between templates are controlled ...

Embodiment 3

[0126] According to the Django framework described in the second embodiment, the following will take the data processing request specifically as a webpage request as an example for detailed description.

[0127] Such as image 3 As shown, a Django-based data flow control method, the specific process can be as follows:

[0128] 301. The server receives a webpage request sent by a user, such as a Hypertext Transfer Protocol (HTTP, Hypertext Transfer Protocol) request, and the webpage request may specifically be a webpage link address, such as a URL.

[0129] Wherein, the web page request can be GET mode or POST mode; wherein, the web page request carries control parameters passed, for example, module (module) identification m, subclass (tag_name) parameter t and action (action) parameter a etc. For example, referring to the URL in Table 2, it can be seen that the module identifier m in the URL is "m=home".

[0130] 302. The server passes the web page request to the URLconf thr...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention embodiment discloses a data flow control method and system based on a webpage frame. The data flow control method comprises the steps that a single entry function is set; the single entry function is transferred when data processing is needed, and a data processing request carrying a transitive control parameter is received by the single entry function; a corresponding functional control module is chosen according to the control parameter; management operation is conducted on a management class function according to the control parameter through the chosen functional control module to get the operation result; corresponding processing result data are generated according to the operation result finally, and the processing result data are sent back to the user through the single entry function. According to the data flow control method and system based on the webpage frame, not only is the collaborative development efficiency improved greatly, but also the error rate is reduced.

Description

technical field [0001] The invention relates to the field of communication technology, in particular to a data flow control method and system based on a web page frame. Background technique [0002] Django is a web framework based on MVC (Model View Controller). The so-called MVC is the abbreviation of model (model)-view (view)-controller (controller). But in Django, the part where the controller accepts user input is handled by the framework itself, so Django pays more attention to the model (Model), template (Template) and view (Views), which is called MTV mode. Due to the fast, efficient, concise, and practical characteristics of the Django framework, it has also developed rapidly in recent years and has become more and more widely used. [0003] In the existing Django framework, the view (view) does not process user input, but only decides which data to display to the user, and the template (Template) is mainly used to decide how to display the data specified by the vie...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F17/30G06F9/44
Inventor 郭军明
Owner TENCENT TECH CHENGDU
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More