[google-appengine] Re: Morphing PHP Stream Wrappers for App Engine

2014-01-04 Thread WooDzu


Yes, I want to store the rule data in configuration.php and then on 
 initialization instead of the hardcoded rules I'm testing with, the rules 
 can be dynamically generated and registered with the wrapper.


 The only problem I have with that is Joomla won't save arrays of data by 
 default in configuration.php - so it means either a plugin to save the data 
 as an array, or limiting it to X number of rules 



Indeed configuration.php might be the right place for it. A custom field 
type could be useful, something that serializes a set rules to json.
I think I even have something in place. Let me know and I'll send it over 
to your repo. 
 

https://lh4.googleusercontent.com/-ISEC0eNAXMI/UsfxP9jphLI/AHg/E_LKne18gDg/s1600/test.png
The json format could be like:

{
  URL_ENCODED_LOCAL: URL_ENCODED_GS,
  

}

The question mark is whether the gs folders should be only checked or also 
created (api needs to be used) upon saving.

 

 I'm mainly trying to balance my tendency to add in lots and lots of 
 options with keeping things simple so I can get to a release/usable 
 point  I mean, why spend weeks adding a bunch of options I don't need 
 if only 2 people are using it?  There doesn't seem to be a lot of interest 
 in deploying Joomla to GAE - it's fun for me and it's a good brain teaser 
 to force my mind into a coding gear.

  
I completely agree here. I think more people will get involved once it's 
fully functional, officially mentioned on the Joomla site and maybe posted 
on some good blog like http://sitepoint.com
Many developers probably don't consider GAE yet as PHP support in GAE is 
still experimental and there still seem to be many bugs around.
My gut feeling is that devs will be using it for really heavy workloads 
since It really has a big potential as PaaS.

I've been testing Joomla on Azure recently and would be extremely convinced 
to stick on it if not the fact MySQL is provided by a 3rd party company 
with scaling limitations and very harsh limits on free tier for testing (20 
MB database !?), bigger options get very expensive. I'm also not really 
convinced by Windows environment though it's PaaS and I shouldn't care what 
it is running on.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [google-appengine] GAE Static files not working locally on windows

2014-01-04 Thread Google Tasks Backup Moderator
On my Windows system running GAE Python, I found that any absolute URLs
were mapped to the equivalent absolute folder on my hard drive. For example
  href=/static/favicon.ico
is mapped to
  c:\static\favicon.ico

I worked around this by creating a symbolic link, by issuing the following
command from an administrator command prompt
  mklink /d \static C:\path\to\my\gae\project\static


Another alternative is to ensure that your application only ever uses
relative URLs.

Hope this helps




On 2 January 2014 01:39, Manish Patel manishtpa...@gmail.com wrote:

 Hi All,

 I am writing my first app for GAE and golang. I am trying to serve static
 files using app.yaml. but having no luck. It returns 404. I am running GAE
 SDK Locally on windows 7 x64.

 Here is my app.yaml. I am trying to serve static files out of my
 /static/images folder under my app folder

 application: myApp
 version: 1
 runtime: go
 api_version: go1

 handlers:
 - url: /images
   static_dir: static/images

 - url: /.*
   script: _go_app

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to google-appengine+unsubscr...@googlegroups.com.
 To post to this group, send email to google-appengine@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-appengine.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


[google-appengine] Re: Processing payments using Paypal, python SDK

2014-01-04 Thread Doug Anderson
My advice would be to use Stripe.com for processing payments.  You'll be 
amazed at how easy it is to get started AND customers don't have to leave 
your site!
(I'm not associated with Stripe in any way... just using it with App Engine 
and can attest to its ease of use)

I may re-add PayPal at some point (in addition to Stripe) but it's a pita 
to deal with the user leaving your site, processing the ipn notifications, 
and then HOPING the user hits the button to return to your site when he's 
finished on PayPal.  With PayPal there's no guarantee the user will return 
to your site (although it's fairly likely).  I've also noticed that the 
initial redirect to PayPal can take a while (for the page to load).  Just 
my experience... I'm sure there are others that really like it.


On Thursday, January 2, 2014 4:52:23 PM UTC-5, Robert Avram wrote:

 I'm trying to figure out how to process payments using paypal python sdk 
 and google app engine.
 the following code seems to work, but I can't figure out, based on the 
 SDK, how to handle the exceptions (wrong credit card number etc).
 I would like the customer to be able to see the error. I would appreciate 
 any input! thanks!!!


 class Buy(generichandler.MainHandler):

 def get(self):

api = paypalrestsdk.set_config(

  mode=sandbox,

  client_id=myclientid,

  client_secret=secret)

api.get_token()

paymentDic = {intent: sale,

  payer: {

payment_method: credit_card,

funding_instruments: [{

 credit_card: {


 type: visa,


 number: 4417119669820331,


 expire_month: 11,


 expire_year: 2018,


 cvv2: 874,


 first_name: Joe,


 last_name: Shopper,


 billing_address: {

   
line1: 52 N Main ST,

   
city: Johnstown,

   
state: OH,

   
postal_code: 43210,

   
country_code: US }}}]},

  transactions: [{

amount: {

  total: 1.47,

  currency: USD,

  details:{

subtotal: 
 1.41,

tax: 0.03,

shipping: 
 0.03}},

description: This is the 
 payment transaction description. }]}

payment = paypalrestsdk.Payment(paymentDic)

payment.create()
 Enter code here...




-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [google-appengine] Google app engine launcher 1.8.8 fails to update

2014-01-04 Thread Vinny P
On Wed, Jan 1, 2014 at 5:21 PM, Richard Schmitz richardmschm...@gmail.com
 wrote:

 I'm just about at my wit's end with this. I am on Mac OS X Mavericks
 trying to update my GoogleAppEngineLauncher from 1.8.6 to 1.8.8. However, I
 keep getting the error message Updates Unsuccessful: Google Software
 Update was not able to install the updates. It will try again later.



OSX Mavericks seems to be breaking quite a few applications since its
release. I would just install the 1.8.8 launcher from the SDK downloads
page: https://developers.google.com/appengine/downloads


-
-Vinny P
Technology  Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.