| | 389 | # AUTHOR NAME --One of the following three is optional. The framework |
|---|
| | 390 | # looks for them in this order. |
|---|
| | 391 | |
|---|
| | 392 | def author_name(self, obj): |
|---|
| | 393 | """ |
|---|
| | 394 | Takes the object returned by get_object() and returns the feed's |
|---|
| | 395 | author's name as a normal Python string. |
|---|
| | 396 | """ |
|---|
| | 397 | |
|---|
| | 398 | def author_name(self): |
|---|
| | 399 | """ |
|---|
| | 400 | Returns the feed's author's name as a normal Python string. |
|---|
| | 401 | """ |
|---|
| | 402 | |
|---|
| | 403 | author_name = 'Sally Smith' # Hard-coded author name. |
|---|
| | 404 | |
|---|
| | 405 | # AUTHOR E-MAIL --One of the following three is optional. The framework |
|---|
| | 406 | # looks for them in this order. |
|---|
| | 407 | |
|---|
| | 408 | def author_email(self, obj): |
|---|
| | 409 | """ |
|---|
| | 410 | Takes the object returned by get_object() and returns the feed's |
|---|
| | 411 | author's e-mail as a normal Python string. |
|---|
| | 412 | """ |
|---|
| | 413 | |
|---|
| | 414 | def author_name(self): |
|---|
| | 415 | """ |
|---|
| | 416 | Returns the feed's author's e-mail as a normal Python string. |
|---|
| | 417 | """ |
|---|
| | 418 | |
|---|
| | 419 | author_email = 'test@example.com' # Hard-coded author e-mail. |
|---|
| | 420 | |
|---|
| | 421 | # AUTHOR LINK --One of the following three is optional. The framework |
|---|
| | 422 | # looks for them in this order. In each case, the URL should include |
|---|
| | 423 | # the "http://" and domain name. |
|---|
| | 424 | |
|---|
| | 425 | def author_link(self, obj): |
|---|
| | 426 | """ |
|---|
| | 427 | Takes the object returned by get_object() and returns the feed's |
|---|
| | 428 | author's URL as a normal Python string. |
|---|
| | 429 | """ |
|---|
| | 430 | |
|---|
| | 431 | def author_link(self): |
|---|
| | 432 | """ |
|---|
| | 433 | Returns the feed's author's URL as a normal Python string. |
|---|
| | 434 | """ |
|---|
| | 435 | |
|---|
| | 436 | author_link = 'http://www.example.com/' # Hard-coded author URL. |
|---|
| | 437 | |
|---|
| | 479 | |
|---|
| | 480 | # ITEM AUTHOR NAME --One of the following three is optional. The |
|---|
| | 481 | # framework looks for them in this order. |
|---|
| | 482 | |
|---|
| | 483 | def item_author_name(self, item): |
|---|
| | 484 | """ |
|---|
| | 485 | Takes an item, as returned by items(), and returns the item's |
|---|
| | 486 | author's name as a normal Python string. |
|---|
| | 487 | """ |
|---|
| | 488 | |
|---|
| | 489 | def item_author_name(self): |
|---|
| | 490 | """ |
|---|
| | 491 | Returns the author name for every item in the feed. |
|---|
| | 492 | """ |
|---|
| | 493 | |
|---|
| | 494 | item_author_name = 'Sally Smith' # Hard-coded author name. |
|---|
| | 495 | |
|---|
| | 496 | # ITEM AUTHOR E-MAIL --One of the following three is optional. The |
|---|
| | 497 | # framework looks for them in this order. |
|---|
| | 498 | # |
|---|
| | 499 | # If you specify this, you must specify item_author_name. |
|---|
| | 500 | |
|---|
| | 501 | def item_author_email(self, obj): |
|---|
| | 502 | """ |
|---|
| | 503 | Takes an item, as returned by items(), and returns the item's |
|---|
| | 504 | author's e-mail as a normal Python string. |
|---|
| | 505 | """ |
|---|
| | 506 | |
|---|
| | 507 | def item_author_email(self): |
|---|
| | 508 | """ |
|---|
| | 509 | Returns the author e-mail for every item in the feed. |
|---|
| | 510 | """ |
|---|
| | 511 | |
|---|
| | 512 | item_author_email = 'test@example.com' # Hard-coded author e-mail. |
|---|
| | 513 | |
|---|
| | 514 | # ITEM AUTHOR LINK --One of the following three is optional. The |
|---|
| | 515 | # framework looks for them in this order. In each case, the URL should |
|---|
| | 516 | # include the "http://" and domain name. |
|---|
| | 517 | # |
|---|
| | 518 | # If you specify this, you must specify item_author_name. |
|---|
| | 519 | |
|---|
| | 520 | def item_author_link(self, obj): |
|---|
| | 521 | """ |
|---|
| | 522 | Takes an item, as returned by items(), and returns the item's |
|---|
| | 523 | author's URL as a normal Python string. |
|---|
| | 524 | """ |
|---|
| | 525 | |
|---|
| | 526 | def item_author_link(self): |
|---|
| | 527 | """ |
|---|
| | 528 | Returns the author URL for every item in the feed. |
|---|
| | 529 | """ |
|---|
| | 530 | |
|---|
| | 531 | item_author_link = 'http://www.example.com/' # Hard-coded author URL. |
|---|