.


:




:

































 

 

 

 





[1]

 

 

..

Python&Zope

 

 
 

 

ZooPython [2]

 

 

 
 

 

: ..

:

: 110802

: ..09[3]

 

 

2004.


 

޻

2009 .

______________________________

-110802 230101

..

27 2009 . 23 2009 .

1. : Web- ZooPython " "****

2. : , , , . . . : Python Zope

3. . . .

 

 

4. :

 

| || -

| | |

|27.10 | 3% |
-| 8.11-| 7% |
|20.11 | |
|22.11-| 10% |
|27.11 | |
|29.11-| 20% |
| 4.12 | |
| 6.12-| 40% |
|11.12 | |
- |13.12-| 15% |
|18.12 | |
|20.12-| 5% |
|25.12 | |

5.

6.

 

..

 

 

1. ...................................................................................................................................... 3

2. ...................................................................................................................... 3

3. ................................................................................................................................ 3

4. ZooPython....................................................................... 3

5. ............................................................................................................ 3

6. ................................................................................................................ 3

7. ............................................................................................................ 3

8. .................................................................................................... 3

9. ..................................................................................................................................... 3

.............................................................................................................. 3

1.

1.1. : Web-. (Open Source).

1.2. . -.

1.3. Web- ZooPython. online .

1.4. :

1.4.1. ZooPython Web-. .

1.4.2. Zope .

1.4.3. Web- ( - Poll, Photo, - Calendar) ( - Pil).

1.4.4. Web- Zope. Web-.

1.4.5. Python.

1.4.6. DTML - Web- . DTML , .

1.4.7. Windows 95/98, NT, XP Linux. , .

1.5. Web- ZooPython.

1.5.1. , , (. 3).

1.5.2. , .

1.5.3. , , .. ( Folder).

1.6. . Pentium. 32.

1.6.1. ZooPythonSite5.zexp = 437 .

1.6.2. Poll = 73 , Photo = 195 Calendar = 213 , PIL = 422 .

1.6.3. Zope: ZooPy, ZooPy.

 

2.

Web- ZooPython ( )

 

2.1. :

Web- ZooPython Web- Python&Zope.

 

2.2. Web-: Web- ZooPython Windows NT, XP, Vista Linux.

2.2.1. :

) .

) , .

) .

2.2.2. Web- ZooPython :

) , , , , .

) , , .

) Zope.

..

2.2.3. Web- ZooPython :

) ;

) ( ).

) ;

) Web-;

) ;

) ;

) .

) .

 

2.3. :

Web- . , .

Zope. : , , , . Web- .

Web- ZooPython , .

, .

3.

ZooPython

3.1. (ZooPythonSite, ZooPython. I ). ( Folder)

 

 

/ (id, title) ( )
  . (ZooPythonSite, ZooPython) Folder File Page Template DTML Method   1, 2, 3, 4, 5, 6
  . (Navigation, ) Folder Script(Python) Page Template   1, 2, 3, 4, 5, 6
  . (TreeView, PythonZope) DTML Method  
  . (GuestBook, ) Folder Script(Python) Page Template    
  . (FileLibrary, ) Folder Script(Python) Page Template    
  . (BuffetPyZope, ZooPython) Folder Page Template DTML Method File    
  . (ShoppingCart, ) Folder Page Template DTML Method File    
Σ        

3.2. (Navigation, . I )

/ (id, title)
1.1 Birds, Folder .
1.2 Mammals, Folder .
1.3 Reptiles, Folder .
1.4 index_html, Page Template View
1.5 breadcrumbs.py, Script(Python) .
1.6 siblings.py, Script(Python) .
Σ      

 

3.3. (TreeView, PythonZope. II ).

 

/ (id, title)
2.1 index_html, DTML Method View.
2.2 treeExpandCollapse, DTML Method /
Σ      

3.4. (GuestBook, . II ).

/ (id, title)
3.1 index_html, DTML Method View
3.2 addEntry.html, Page Template
3.3 formatEntry Script(Python)  
3.4 addEntry Script(Python)
3.5 getEntries Script(Python)
3.6 Entries, Folder
Σ      

3.5. (FileLibrary, . II ).

/ (id, title)
4.1 index_html, Page Template View
4.2 Files, Folder
4.3 addFile Script(Python)
4.4 getFiles Script(Python)
4.5 getLink Script(Python) URL
4.6 getSize Script(Python) B, KB, MB
Σ      

3.6. (BuffetPyZope, ZooPython. II ).

/ (id, title)
5.1 index_html, Page Template View
5.2 Buffet, Folder . ShoppingCart
5.3 standard_html_footer, DTML Method
5.4 standard_html_header, DTML Method
Σ      

3.7. (ShoppingCart, . II ).

/ (id, title)
6.1 index_html, Page Template View
6.2 addItems Script(Python)
6.3 currentItems Script(Python)
6.4 deleteItems Script(Python)
6.5 getItem Script(Python) id
6.6 getTotal Script(Python)
Σ      

4. ZooPython

. , , . ( Folder). . Web- index_html ( Page Template DTML Method).

: (, , , ), , . 7 " ". - http://ucs-ustu.ru/docs

 


5.

5.0. ZooPython ( )

5.1. ZooPython ( Navigation)

5.2. ZooPython ( Teachers)

. 6.2.

 

5.3. ( GuestBook)

5.4 ( FileLibrary)

5.5 ( BuffetPyZope)

 

5.6 Python ( Python_Boa ZoPyPhotoAlbum)

Photo Photo Photo Folder. , Photo Folder.

 

 

: Pregenerate Displays Create sample views. Add . Photo Folder. , .

Content Photo. Add Photo.

 

 

 

1 Python_Boa

 

 

.

 

 

2 ZoPyPhotoAlbum

5.7 ZooPython ( Calendar)

6.

6.0. ZooPython ( )

Zope. . Zope. , , management interface. , . !

PythonZope

PythonZope

ZooPythonSite, . , import/ZooPythonSite.zexp ZooPythonSiteN.zexp.

6.1. ZooPython ( Navigation)

/ZooPythonSite

, . c Navigation . -.

:

, , breadcrumbs. , . Python breadcrumbs.py

. C Python Page Template. Python .

, -, -.

. - , , . siblings.py.

PythonZope

PythonZope


6.2. ZooPython ( Teachers)

 

 

Teachers

 


6.3. ( GuestBook)

, .

Entries. . getEntries. formatEntry . , Entries. ZSQL, .

addEntry.html , . addEntry. addEntry . proxy "manager", .

By Anonymous 2004/11/11 web- PythonZope
By nig 2004/11/11 07.11.04 3
By Anonymous 2004/11/11 , .
By Amos 2004/11/11 - . . , <blink> </blink> HTML , HTML . entry_0 Entries. , . , .

. addEntry.html

6.4 ( FileLibrary)

. . , . , . , . .

Files. getFiles . getLink getSize . index_html. test, CSS , . , , , .

ID Type Size Last Modified
example.html text/html 197 bytes Nov 11, 2004 8:22 am
example.txt text/plain 28 bytes Nov 11, 2004 8:23 am

, . addFile , , Files. . addFile "manager", .

6.5 ( BuffetPyZope)

PythonZope

ZooPython. . !

, . , .

, . , Zope , .

. items . currentItems , , . deleteItems .

.

Item Description Price Quantity
. $1.00  
- , . $10.00  
. $15.75  
   

addItems . , . id quantity.

6.6 Python ( ZoPyPhotoAlbum)

Python

.

6.7 ZooPython ( Calendar)

2004

2005

7.

Web-.

*.zexp

C:\Program Files\WebSite\import\

Zope ZODB. . Import/Export . zexp .

 

ZooPython

id : ZooPythonSite

ZooPythonSiteN.zexp Web-. N - .

. , .

 





:


: 2016-07-29; !; : 561 |


:

:

, ; , .
==> ...

1007 - | 823 -


© 2015-2024 lektsii.org - -

: 0.119 .