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 8720859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:07:31+00:00 2026-06-13T07:07:31+00:00

I want to send a python list to my ladon service. Consider the following

  • 0

I want to send a python list to my ladon service.
Consider the following python list

lst_col_title = [(1, 'Column1', 10, 'L'),(2, 'Column2', 15, 'L'),(3, 'Column3', 15, 'L'),(4, 'Column4', 10, 'L'),(5, 'Column5', 10, 'L')]

Is their any possible way to send this kind of list to ladon services using suds.

EDIT
Actually I want to send the following python variables to a ladon service using suds

    str_report_name = 'OPENING BALANCE REPORT'
    str_report_format = 'GENERAL'
    lst_main_heading = [('<w><h><b><ds>NAME TRAVEL & TOURISM</ds></b></h></w>', 1), ('<p5><b>     <b></p5>', 2), ('<b><p2>P.O BOX 3000, JEDDAH 12345, KSA, Phone: 02 6845455</p2></b>', 3), ('<b><p2>Email: info@nametravel.com, Fax: 02 6873455, C.R.No: </p2></b>', 4), ('', 5)]
    lst_header = []
    lst_report_header = [['', 'CREDIT NOTE', '', '<u><b><w>'], ['', '', '', ''], ['', 'No: RF/1', '', '<b>'], ['To, CASH KAAU (942)', '', 'Date: 01/01/2011', '<b>'], ['    P.O. Box No. 3263,DOHA,QATAR', '', 'Code: C022      ', '<b>'], ['    Tel: +91 9945 4561 45, Fax: +21 7894 7894', '', '', '<b>'], ['    E-Mail: cashkaau123@gmail.com', '', '', '<b>'], ['', '', '', ''], ['Please note that we have CREDITED your account with following details.', '', '', '']]
    lst_page_header = []
    lst_footer = []
    lst_page_footer = []
    lst_report_footer = [['Two Thousand Two Hundred Seventeen Saudi Riyal Only ', '', '2217.00', '<b>'], ['', '', '', ''], ['Accountant', 'Created By:ADMIN', 'Manager', ''], ['', '', '', ''], ['Signature', '', '', '']]
    lst_report_data = [('', '', '', '', ''), (1, '065-9778821549', 'ABOUNASEF/SEHAM KAMEL MRS', 'JED/CAI/JED', '2584.00'), ('', '', '<i>Less</i>: Cancellation Fee', '', '367.00'), ('', '', '', '', ''), ('', 'THIS IS TO CHECK THE NARRATION PRINTING THIS IS TO CHECK THE NARRATION PRINTING THIS IS TO CHECK THE NARR<i>', '', '', '')]
    bln_show_column_heading = True
    lst_col_title = [(1, 'Column1', 10, 'L'),(2, 'Column2', 15, 'L'),(3, 'Column3', 15, 'L'),(4, 'Column4', 10, 'L'),(5, 'Column5', 10, 'L')]

This is my ladon service

@ladonize(str,str,[PORTABLE_STRING],[PORTABLE_STRING],[PORTABLE_STRING],[PORTABLE_STRING],[PORTABLE_STRING],[PORTABLE_STRING],[PORTABLE_STRING],[PORTABLE_STRING],[PORTABLE_STRING],[PORTABLE_STRING], rtype=str)
def generate_pdf_print(self, str_report_name,str_report_format,lst_main_heading, lst_header, lst_report_header, lst_page_header, lst_footer, lst_report_footer, lst_page_footer, lst_report_data, bln_show_column_heading, lst_col_title, **args):

But [PORTABLE_STRING] will not do what I want.

As I am new to web services, I have no idea how to deal with thease type of complex python types.

UPDATE

I have created a new ladon type for

    lst_col_title = [(1, 'Column1', 10, 'L'),(2, 'Column2', 15, 'L'),(3, 'Column3', 15, 'L'),(4, 'Column4', 10, 'L'),(5, 'Column5', 10, 'L')]

as:

class Table(LadonType):
    slno = int
    col_title = PORTABLE_STRING
    col_size = int
    col_align = PORTABLE_STRING

and modified the @ladonize as,

@ladonize(str,str,[PORTABLE_STRING],[PORTABLE_STRING],[PORTABLE_STRING],[PORTABLE_STRING],[PORTABLE_STRING],[PORTABLE_STRING],[PORTABLE_STRING],[PORTABLE_STRING],[PORTABLE_STRING],[ Table ], rtype=str)

Is this a right way?
It raises an error for me

' Server raised fault: '
classname: <class 'AccountEngine.Table'>
Dictionary expected for prime_dict got "<type 'unicode'>" of value "1"'
  • 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-06-13T07:07:32+00:00Added an answer on June 13, 2026 at 7:07 am

    I have solved this problem, by converting each list as string.

    self.generate_pdf_file(str_report_name,
                    str_report_format,
                    str(lst_main_heading),
                    str(lst_header),
                    str(lst_report_header),
                    str(lst_page_header),
                    str(lst_footer),
                    str(lst_report_footer),
                    str(lst_page_footer),
                    str(lst_report_data),
                    bln_show_column_heading,
                    str(lst_col_title))
    

    Now my @ladonize looks like:

    @ladonize(str,str,str,str,str,str,str,str,str,str,str,str, rtype=str)
    def generate_pdf_print(self, str_report_name,str_report_format,lst_main_heading, lst_header, lst_report_header, lst_page_header, lst_footer, lst_report_footer, lst_page_footer, lst_report_data, bln_show_column_heading, lst_col_title, **args):
    

    And reverted those valuesusing eval as follows:

    def generate_pdf_print(self,db,
                                str_report_name = 'OPENING BALANCE REPORT',
                                str_report_format = 'GENERAL',
                                lst_main_heading = [],
                                lst_header = [],
                                lst_report_header = [],
                                lst_page_header = [],
                                lst_footer = [],
                                lst_report_footer = [],
                                lst_page_footer = [],
                                lst_report_data = [],
                                bln_show_column_heading = True,
                                lst_col_title = [],
                                int_count_blocks_of_data_in_print = 1,
                                str_pdf_theme = 'Default'
                                ):
    
        lst_main_heading = eval(lst_main_heading) 
        lst_header = eval(lst_header)
        lst_report_header = eval(lst_report_header) 
        lst_page_header = eval(lst_page_header) 
        lst_footer = eval(lst_footer)
        lst_page_footer = eval(lst_page_footer)
        lst_report_footer = eval(lst_report_footer) 
        lst_report_data = eval(lst_report_data) 
        bln_show_column_heading = True
        lst_col_title = eval(lst_col_title) 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello Sir i want send list of data to php server i use following
I want to send an email with an attachment using the following code (Python
In python, I want to send a request to a url which will return
I am using the Python avro library . I want to send an avro
I want to write a simple python script that send a EML file exported
I'm attempting to write a Python function to send an email to a list
how can I handle post request in python script? Somewhere I want to send
I want to send a POST request with Python, setting the whole POST body
I want to send messages to multiple friends in linkedin using python. from docs
I want to send email messages that have arbitrary unicode bodies in a Python

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.