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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:37:35+00:00 2026-06-13T04:37:35+00:00

Is there a way to pass PloneFormGen form data to an external site with

  • 0

Is there a way to pass PloneFormGen form data to an external site with post request in custom script adapter?

My external site is visible only by server

url for post is http://app.com/issues_form/issues

My script in custom stript adapter:

import urllib
import urllib2

url = "http://app.com/issues_form/issues"
values = {'issue' : request.form['issue'] }
data = urllib.urlencode(values)
urllib2.Request(url,data)

When submitting I get unauthorized access or something with permissions

http://ploneapp.com/acl_users/credentials_cookie_auth/require_login?came_from=http%3A/ploneapp.com/structure/test/issue_form

It seems the errors happens when I use urllib.urlencode.

It is the same when I try to use another way with ‘requests’ library. Maybe I cant access such libraries in such places.

  • 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-13T04:37:36+00:00Added an answer on June 13, 2026 at 4:37 am

    This is not possible via the custom script adapter unless you bypass some security — which is inadvisable. The problem is that the urllib and urllib2 libraries have not been marked as “safe” in restricted Python. “Restricted Python” is the subset of Python available for TTW scripting.

    If you need to do something like this, you’ll need to add a file system product, probably a browser view. You’ll find examples of packages that do this with PFG input in the products section of Plone.Org. Most are concerned with external payment or membership systems. You’ll find they deal with a lot of thorny issues, like threading and timeouts, to make sure that Plone is not tied up waiting for a post to process.

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

Sidebar

Related Questions

Is there a way to pass data from a View to a Controller so
Is there a way to pass data between pages without using cookies and a
Is there a way to pass data to a (managed, C#) CustomAction? Preferably using
Is there any way to pass the CruiseControl modification set to a custom ant
is there a way to pass external parameter into Grid renderer function? For example,
Is there a way to pass named arguments to a Ruby script? I understand
Is there a way to pass data to my app upon install from a
Is there a way to pass more data into a callback function in jQuery?
Is there any way to pass custom font for TextView (or subclasses of it)
Is there a way to pass a piece of extra data along with a

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.