Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7666365
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T14:48:55+00:00 2026-05-31T14:48:55+00:00

I have mail.py file: # coding: utf-8 from ..lib.common import * from ..lib.common import

  • 0

I have mail.py file:

# coding: utf-8

from ..lib.common import *
from ..lib.common import _
from ..lib.forms import *


import os

log = logging.getLogger(__name__)

class mail(BaseHandler):

   @view_config(route_name="mail", renderer="mail/mail.mako")
   def index(self):
      return {
        'mail':mail
      }


   @view_config(route_name="send")
   def send(request):
      data = request.params['in']
      return Response(str(data))

and mail.maco:

   ## coding: utf-8                                                                                                                        
   <%inherit file="../base.mako" />

   <form action="${request.route_url('send')}" method="post">

   <input type="text" name="in"  size="50">
   <input type="submit" value="SEND" >

   </form>

I want to get ‘in”s text. But when i press send button pyramid show me error:

AttributeError: 'mail' object has no attribute 'params'

If i write

Response('some text')

everything works great and text shows, but i want to get input text. Why do I get this error?

error

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T14:48:56+00:00Added an answer on May 31, 2026 at 2:48 pm

    Your send() method is lacking the self parameter. (At least I’m guessing it is supposed to be a method. Since the indentation of your post is wrong, I can’t tell.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two file 'mail.php' and 'cron.php' . 'mail.php' receives email address from a
Fatal error: Uncaught exception 'Zend_Exception' with message 'File Mail.php does not exist or class
If I have a mail object, eg: mail = Mail.new do from jim@gmail.com to
Provided that I have the mail file name and the server, how do I
I have created a mail.jar file and mywar.war file. What I need to set
I have a newsletter template in one file and a mail script in another
I have the following mail.php file : <?php $name = $_POST['name']; $to = $_POST['to'];
I have this mail script I have to run a few times. To start
I have a mail webform where I have to show the user only (-1)
Is there some way to have the Mail Merge capability in my application? Maybe

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.